Hello, I am having issues loading saved custom parametric type using StaticArrays in Julia 1.5.
The following example:
using JLD
using StaticArrays
struct MyType{N}
a::SVector{N, Int64}
end
MyType{2}(SA[1,2])
JLD.save("test.jld", "s", MyType{2}(SA[1,2]))
load("test.jld")
produces this error:
ERROR: stored type MyType{2} does not match currently loaded type
I get the same error if the parameter is the type and not the size.
Everything works fine when using the StaticArray directly:
Hello, I am having issues loading saved custom parametric type using StaticArrays in Julia 1.5.
The following example:
produces this error:
I get the same error if the parameter is the type and not the size.
Everything works fine when using the StaticArray directly:
Similarly, using custom nested parametric types works fine as well:
What could be causing this? I get this error only with my own parametric types using StaticArrays. I have posted this also in StaticArrays: https://github.com/JuliaArrays/StaticArrays.jl/issues/877