mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
Fix for incorrect function name in documentation example (#4342)
This commit is contained in:
parent
377c767aa1
commit
c883fb0f17
@ -265,7 +265,7 @@ struct bad_serializer
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename BasicJsonType>
|
template <typename BasicJsonType>
|
||||||
static void to_json(const BasicJsonType& j, T& value) {
|
static void from_json(const BasicJsonType& j, T& value) {
|
||||||
// this calls BasicJsonType::json_serializer<T>::from_json(j, value);
|
// this calls BasicJsonType::json_serializer<T>::from_json(j, value);
|
||||||
// if BasicJsonType::json_serializer == bad_serializer ... oops!
|
// if BasicJsonType::json_serializer == bad_serializer ... oops!
|
||||||
value = j.template template get<T>(); // oops!
|
value = j.template template get<T>(); // oops!
|
||||||
|
Loading…
Reference in New Issue
Block a user