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'm getting the "could not find to_json() in T's namespace" error when trying to use a struct nested in a class. I figure I'm most likely just missing something...
Ah I understand. I misinterpreted the readme. I thought I would need to put to_json inside the class because that's where the struct is defined. Just putting the to_json in the global namespace where the class is defined works just fine. Thanks for the quick response!
I'm getting the "could not find to_json() in T's namespace" error when trying to use a struct nested in a class. I figure I'm most likely just missing something...
The following does not work...
But this similar example does. Not sure what I'm missing for classes
And I'm just testing it with
The text was updated successfully, but these errors were encountered: