Commit 1305e035 authored by Niels Lohmann's avatar Niels Lohmann

📝 fixed documentation

parent 77bb7af5
...@@ -520,7 +520,7 @@ Likewise, when calling `get<your_type>()`, the `from_json` method will be called ...@@ -520,7 +520,7 @@ Likewise, when calling `get<your_type>()`, the `from_json` method will be called
Some important things: Some important things:
* Those methods **MUST** be in your type's namespace (which can be the global namespace), or the library will not be able to locate them (in this example, they are in namespace `ns`, where `person` is defined). * Those methods **MUST** be in your type's namespace (which can be the global namespace), or the library will not be able to locate them (in this example, they are in namespace `ns`, where `person` is defined).
* When using `get<your_type>()`, `your_type` **MUST** be [DefaultConstructible](http://en.cppreference.com/w/cpp/concept/DefaultConstructible). (There is a way to bypass those requirements described later.) * When using `get<your_type>()`, `your_type` **MUST** be [DefaultConstructible](http://en.cppreference.com/w/cpp/concept/DefaultConstructible). (There is a way to bypass this requirement described later.)
#### How do I convert third-party types? #### How do I convert third-party types?
...@@ -583,7 +583,6 @@ struct move_only_type { ...@@ -583,7 +583,6 @@ struct move_only_type {
move_only_type(const move_only_type&) = delete; move_only_type(const move_only_type&) = delete;
move_only_type(move_only_type&&) = default; move_only_type(move_only_type&&) = default;
private:
int i; int i;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment