Repository navigation
Is there any special consideration/limitation that multi-dimensional C-style array member of struct is not supported? #4248
peng-wang-cn
started this conversation in
Ideas
Replies: 2 comments 6 replies
|
Hi, there, I'd figured out that by adding new version of from_json() for T (&arr)[N1][N2] it will support 2-dimensional array. Thanks, |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, @nlohmann,
I'm trying to use the library for a struct with multi-dimensional (C-style) array member, like:
The compiler (I'm using g++ 11.4) spits errors complaining:
If m3 is removed, everything is OK.
Is it possible that multi-dimensional array members are supported? Or is there any special limitation that prevent it from being supported?
Thanks,
Peng
All reactions