Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_json fails when using basic_ptree with other string types #55

Open
ghost opened this issue Jul 12, 2020 · 0 comments
Open

write_json fails when using basic_ptree with other string types #55

ghost opened this issue Jul 12, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2020

Good morning,

I was working on a project, I would like to use basic_ptree with strings of non standard type (see T1.cpp attached toy example).

While read_json works smootly, write_json fails (see compiler output T1.error.txt).

I checked the code and, apparently, an easy fix could enable this feature (see write.hpp which I revised for your convenience, original lines of code are commented, those inserted are marked with an eol comment "suggested").

Thank you for your time,
Marco.

write.hpp.txt
T1.cpp.txt
T1.error.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants