Fix multiply defined symbols.
This commit is contained in:
parent
7507223c8b
commit
c249bef27d
@ -421,22 +421,22 @@ class JSON
|
|||||||
Class Type;
|
Class Type;
|
||||||
};
|
};
|
||||||
|
|
||||||
JSON Array() {
|
inline JSON Array() {
|
||||||
return JSON::Make( JSON::Class::Array );
|
return JSON::Make( JSON::Class::Array );
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename... T>
|
template <typename... T>
|
||||||
JSON Array( T... args ) {
|
inline JSON Array( T... args ) {
|
||||||
JSON arr = JSON::Make( JSON::Class::Array );
|
JSON arr = JSON::Make( JSON::Class::Array );
|
||||||
arr.append( args... );
|
arr.append( args... );
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSON Object() {
|
inline JSON Object() {
|
||||||
return JSON::Make( JSON::Class::Object );
|
return JSON::Make( JSON::Class::Object );
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<( std::ostream &os, const JSON &json ) {
|
inline std::ostream& operator<<( std::ostream &os, const JSON &json ) {
|
||||||
os << json.dump();
|
os << json.dump();
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user