You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I couldn't find a similar question; sorry if this is something obvious!)
I'm building C++ from a JSON Schema and it works amazingly well. However, the C++ classes generated often use the same variable name for a formal parameter as for a member variable. For instance:
which causes Visual Studio 2019 (on Windows) to report lots of these messages:
d:\dgidev\src\ev_osduclient\Well_schema.h(71): warning C4458: declaration of 'min_int_value' hides class member
Yes, it's just a warning so I could turn off C4458, but is there a way to prevent this with an option to quicktype ?
My workaround is to use --code-format with-struct to generate structs instead of classes since the struct generation doesn't create the setters and getters.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
(I couldn't find a similar question; sorry if this is something obvious!)
I'm building C++ from a JSON Schema and it works amazingly well. However, the C++ classes generated often use the same variable name for a formal parameter as for a member variable. For instance:
which causes Visual Studio 2019 (on Windows) to report lots of these messages:
Yes, it's just a warning so I could turn off C4458, but is there a way to prevent this with an option to
quicktype
?My workaround is to use
--code-format with-struct
to generate structs instead of classes since the struct generation doesn't create the setters and getters.Thanks for any tips!
Beta Was this translation helpful? Give feedback.
All reactions