Skip to content

Issue with convert value string into std::string and vice versa #16

Answered by yosh-matsuda
tuongbuimtt asked this question in Q&A
Discussion options

You must be logged in to vote

The emplace member function has the copy_string specifier in the 3rd argument.
Does this also solve your problem?

json.emplace("sid", sid, copy_string);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@yosh-matsuda
Comment options

Answer selected by yosh-matsuda
@tuongbuimtt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #15 on March 19, 2024 07:20.