Removed accidental C++11 dependancy.

This commit is contained in:
Thulinma 2013-08-27 20:30:38 +02:00
parent 86a745dbfb
commit f48833343a
2 changed files with 8 additions and 8 deletions

View file

@ -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];
}