-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Jsoncpp string #442
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
Jsoncpp string #442
Conversation
Hi Chris, many thanks, I think it's looking good! |
? duplicateStringValue(other.cstr_, other.storage_.length_) | ||
: other.cstr_) { | ||
Value::CZString::CZString(const CZString& other) { | ||
cstr_ = (other.storage_.policy_ != noDuplication && other.cstr_ != 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering about this change. In general, it's slightly faster to a initialization list, but not for built-in types like pointers. So I don't care. Just curious.
Almost ready to merge, but I think we need something in cmake to allow this feature to be enabled. If it is built one way, but users supply a different setting for the macro, that would be a problem. It might be better for cmake to substitute something in some header, and to let everything rely on that.
|
7f7e013
to
44159ac
Compare
Any objections? |
An error from TravisCI:
|
44159ac
to
0ded628
Compare
Another one:
|
Add allocator.h to amalgamated header Test JSONCPP_USE_SECURE_MEMORY in Travis
0ded628
to
ae56465
Compare
Hi Chris, thanks for merging this, you had asked some questions e.g.:
However they've disappeared, would you like me to answer them in this pull request or are you happy? (p.s. the above was because i had trouble to initialize the list during one of the iterations in the initialization list due to needing an ifdef in the initialization list and the code was becoming unreadable so i sacrificed cpu for maintainability however apologies it should have gone back again!) |
I think we're fine. Hopefully, no-one will mind the macros too much. |
After
std::string
->JSON_CPP
, these are the actual changes. For discussion with @dawesc of ETFlab.