Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving tuple-like types of unknown size #402

Closed
Cornelius-G opened this issue Jun 20, 2022 · 2 comments
Closed

Saving tuple-like types of unknown size #402

Cornelius-G opened this issue Jun 20, 2022 · 2 comments
Labels

Comments

@Cornelius-G
Copy link

Hi,

should it be possible to save tuple-like types of unknown size?

Currently, this is not working:

using JLD2

T = NTuple{N, Int} where N
jldsave("test.jld2", myT = T)

but giving the following stacktrace.txt

Interestingly, this way it works:

struct test_workaround
    a::(NTuple{N,Int} where N)
end

jldsave("test.jld2", a=test_workaround)

while this is again giving the same error:

struct test{X<:(NTuple{N,Int} where N)}
    a::X
end
jldsave("test.jld2", a=test)

(This issue is closely related to oschulz/ValueShapes.jl#62)

@JonasIsensee
Copy link
Collaborator

You are right, that should probably be possible.

@JonasIsensee
Copy link
Collaborator

fixed by #519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants