mirror of
https://github.com/nlohmann/json.git
synced 2026-03-22 08:52:48 +00:00
Fix string conversion under Clang
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user