Replies: 2 comments 1 reply
-
Do you have more details like the source of your container or the error message? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was hoping to use constructor overload number 7 from the documentation: https://json.nlohmann.me/api/basic_json/basic_json/
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have data in an incompatible, proprietary container which I would like to serialize. I thought of using a custom iterator which would use that container and provide data in a compatible/serializable format. That is, de-referencing the iterator would convert the respective element on-demand.
I hoped I could simply pass
begin
andend
iterator to thejson
constructor. But when I tried this with a well defined container, compilation fails:Is there a way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions