#stdlib json parser unable to parse into @Vector types

1 messages · Page 1 of 1 (latest)

soft skiff
#
std/json.zig:1894:17: error: Unable to parse into type '@Vector(3, f32)'
        else => @compileError("Unable to parse into type '" ++ @typeName(T) ++ "'"),

What can I do here?

low dirge
#

is it an option to cast to a [3]f32 somehow?

#

fwiw, vectors and arrays with the same size and element type will coerce with @as or equivalent.