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
Because I really hate defining to_json/from_json by using the infamous ADL trick (I come from a C#/Java background so the fame of ADL depends), I decided to make the OOP-way-of-serialization shim of my own
I was having some progress, the following code demonstrated is a complete valid and legit code:
I group all my other serializers into namespace nlohmann just to keep it away from polluting my global namespace without creating another namespace of my own.
The text was updated successfully, but these errors were encountered:
Because I really hate defining to_json/from_json by using the infamous ADL trick (I come from a C#/Java background so the fame of ADL depends), I decided to make the OOP-way-of-serialization shim of my own
I was having some progress, the following code demonstrated is a complete valid and legit code:
IJsonSerializable.hpp:
Vector3.hpp:
This works pretty much fine for me, but is there any way to rewrite it in the following form?
I group all my other serializers into
namespace nlohmann
just to keep it away from polluting my global namespace without creating another namespace of my own.The text was updated successfully, but these errors were encountered: