Private member initialization with overload of from_json? #4413
-
Thanks in advance to all contributors. I'm trying to write overloads for For now I'm just putting the overloads in the global namespace b/c docs warn against using member methods. Class declaration (abbreviated)
Overload:
Error msgs:
Example Call:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In order to access private data directly, you must declare the functions as friends in the same way as the
|
Beta Was this translation helpful? Give feedback.
In order to access private data directly, you must declare the functions as friends in the same way as the
INTRUSIVE
macros.