You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
## Library features
21
21
22
22
- Header-only (optional!)
23
+
- Module support
23
24
- Supports the latest [TOML] release ([v1.0.0]), plus optional support for some unreleased TOML features
24
25
- Passes all tests in the [toml-test](https://github.com/toml-lang/toml-test) suite
25
26
- Supports serializing to JSON and YAML
@@ -110,8 +111,8 @@ You'll find some more code examples in the `examples` directory, and plenty more
110
111
### 🍨️ Regular flavour
111
112
112
113
1. Clone the repository
113
-
2. Add `tomlplusplus/include` to your include paths
114
-
3. `#include <toml++/toml.hpp>`
114
+
2. Add `tomlplusplus/include` to your include paths, or for optional module support add `tomlplusplus/modules` as well and enable `TOMLPLUSPLUS_BUILD_MODULES`
Copy file name to clipboardExpand all lines: docs/pages/main_page.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
@section mainpage-features Features
8
8
9
9
- Header-only (optional!)
10
+
- Module support
10
11
- Supports the latest [TOML](https://toml.io/) release ([v1.0.0](https://toml.io/en/v1.0.0)), plus
11
12
optional support for some unreleased TOML features
12
13
- Passes all tests in the [toml-test](https://github.com/BurntSushi/toml-test) suite
@@ -37,6 +38,8 @@ Call toml::parse_file() and work with the toml::table you get back, or handle an
37
38
@cpp
38
39
#include <iostream>
39
40
#include <toml++/toml.hpp>
41
+
// or alternatively:
42
+
import tomlplusplus; // if C++20 or later
40
43
41
44
int main(int argc, char\*\* argv)
42
45
{
@@ -460,8 +463,8 @@ and [emoji sundae] Regular. The API is the same for both.
460
463
461
464
<h3>[emoji sundae] Regular flavour</h3>
462
465
1. Clone \github{marzer/tomlplusplus, the repository} from GitHub
463
-
2. Add `tomlplusplus/include` to your include paths
464
-
3.`#include <toml++/toml.hpp>`
466
+
2. Add `tomlplusplus/include` to your include paths, or for optional module support add `tomlplusplus/modules` as well and enable `TOMLPLUSPLUS_BUILD_MODULES`
0 commit comments