Removed accidental C++11 dependancy.
This commit is contained in:
parent
86a745dbfb
commit
f48833343a
2 changed files with 8 additions and 8 deletions
10
lib/json.cpp
10
lib/json.cpp
|
@ -439,19 +439,19 @@ JSON::Value & JSON::Value::operator[](unsigned int i){
|
|||
|
||||
/// Retrieves the JSON::Value at this position in the object.
|
||||
/// Fails horribly if that values does not exist.
|
||||
JSON::Value const & JSON::Value::operator[](const std::string i) const{
|
||||
return objVal.at(i);
|
||||
const JSON::Value & JSON::Value::operator[](const std::string i) const{
|
||||
return objVal.find(i)->second;
|
||||
}
|
||||
|
||||
/// Retrieves the JSON::Value at this position in the object.
|
||||
/// Fails horribly if that values does not exist.
|
||||
JSON::Value const & JSON::Value::operator[](const char * i) const{
|
||||
return objVal.at(i);
|
||||
const JSON::Value & JSON::Value::operator[](const char * i) const{
|
||||
return objVal.find(i)->second;
|
||||
}
|
||||
|
||||
/// Retrieves the JSON::Value at this position in the array.
|
||||
/// Fails horribly if that values does not exist.
|
||||
JSON::Value const & JSON::Value::operator[](unsigned int i) const{
|
||||
const JSON::Value & JSON::Value::operator[](unsigned int i) const{
|
||||
return arrVal[i];
|
||||
}
|
||||
|
||||
|
|
|
@ -72,9 +72,9 @@ namespace JSON {
|
|||
Value & operator[](const std::string i);
|
||||
Value & operator[](const char * i);
|
||||
Value & operator[](unsigned int i);
|
||||
Value const & operator[](const std::string i) const;
|
||||
Value const & operator[](const char * i) const;
|
||||
Value const & operator[](unsigned int i) const;
|
||||
const Value & operator[](const std::string i) const;
|
||||
const Value & operator[](const char * i) const;
|
||||
const Value & operator[](unsigned int i) const;
|
||||
//handy functions and others
|
||||
std::string toPacked();
|
||||
void netPrepare();
|
||||
|
|
Loading…
Add table
Reference in a new issue