Is there any special consideration/limitation that multi-dimensional C-style array member of struct is not supported? #4248
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, |
Beta Was this translation helpful? Give feedback.
-
Will be addressed by merging #4262. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions