doc: update README

This commit is contained in:
ToruNiina
2019-06-21 17:02:30 +09:00
parent b79797d2c7
commit a343ffd2a1

View File

@@ -91,7 +91,8 @@ int main()
}
```
The convenient way is to add this repository as a git-submodule.
The convenient way is to add this repository as a git-submodule or to install
it in your system by CMake.
## Decoding a toml file
@@ -485,11 +486,6 @@ toml::value v = /* ... */;
if(v.is(toml::value_t::boolean)) // ...
```
**NOTE**: BREAKING CHANGES from v2.y.z: `(is|as)_float` has been removed.
Use `(is|as)_floating` instead.
See [Breaking Changes from v2](#breaking-changes-from-v2) for the complete list
of breaking changes.
## More about conversion
Since `toml::find` internally uses `toml::get`, all the following examples work
@@ -1066,8 +1062,8 @@ you can add conversion between `toml::value` and classes defined in another libr
Note that you cannot implement both of the functions because the overload
resolution of `toml::get` will be ambiguous.
If you want to convert arbitrary specialization of `toml::basic_value`,
templatize the conversion function as follows.
If you want to convert any versions of `toml::basic_value`,
you need to templatize the conversion function as follows.
```cpp
struct foo