Fix string conversion under Clang

This commit is contained in:
WanCW committed 2015-01-12 20:03:41 +08:00
1 parent bd05c7a18a
commit 36f6199898
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -442,7 +442,7 @@ json::object_t json::get() const
}
}
json::operator const std::string() const
json::operator std::string() const
{
return get<std::string>();
}
+1 -1
View File
@@ -175,7 +175,7 @@ class json
T get() const;
/// implicit conversion to string representation
operator const std::string() const;
operator std::string() const;
/// implicit conversion to integer (only for numbers)
operator int() const;
/// implicit conversion to double (only for numbers)