mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 18:51:04 +08:00
change str_ for cross-compilation
https://sourceforge.net/p/jsoncpp/bugs/59/
This commit is contained in:
parent
7f439f4276
commit
ff61752444
@ -74,14 +74,14 @@ enum CommentPlacement {
|
||||
*/
|
||||
class JSON_API StaticString {
|
||||
public:
|
||||
explicit StaticString(const char* czstring) : str_(czstring) {}
|
||||
explicit StaticString(const char* czstring) : c_str_(czstring) {}
|
||||
|
||||
operator const char*() const { return str_; }
|
||||
operator const char*() const { return c_str_; }
|
||||
|
||||
const char* c_str() const { return str_; }
|
||||
const char* c_str() const { return c_str_; }
|
||||
|
||||
private:
|
||||
const char* str_;
|
||||
const char* c_str_;
|
||||
};
|
||||
|
||||
/** \brief Represents a <a HREF="http://www.json.org">JSON</a> value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user