Did you import StaticArrays? The following works for me:
using ComponentArrays
using StaticArrays
x = ComponentVector(a=5, b=[4, 1], c = [1 2; 3 4], d=(e=2, f=[6, 30.0]))
@static_unpack a, b, c, d = x
Did you import StaticArrays? The following works for me:
using ComponentArrays
using StaticArrays
x = ComponentVector(a=5, b=[4, 1], c = [1 2; 3 4], d=(e=2, f=[6, 30.0]))
@static_unpack a, b, c, d = x