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
/// \section mainpage-adding-lib Adding toml++ to your project
82
-
/// Clone [the repository](https://github.com/marzer/tomlplusplus/) from GitHub. It's header-only so there's not much you have to do after that,
83
-
/// other than some very minor (optional) configuration. See the [README](https://github.com/marzer/tomlplusplus/blob/master/README.md) for more info.
86
+
/// It's header-only library so really all you have to do is clone
87
+
/// [the repository](https://github.com/marzer/tomlplusplus/) from GitHub and set your include paths.
88
+
/// There's some minor configuration you can do to customize some basic library functionality, but that's totally
89
+
/// optional. See the [README](https://github.com/marzer/tomlplusplus/blob/master/README.md) for more info.
90
+
///
91
+
/// <blockquote>
92
+
/// <h3>On Linkers and the One-Definition-Rule</h3>
93
+
/// <p>Header-only libraries are great for minimal setup, but can cause ODR violations and complex linker errors
94
+
/// in situations where multiple modules include them separately, each with different versions, configuration options,
95
+
/// exception handling modes, et cetera.</p>
96
+
/// <p>`toml++` attempts to combat this problem by nesting everything inside an additional inline namespace that
97
+
/// changes according to the library's major version and the compiler's exception-handling mode.</p>
/// toml++ works whether you have exceptions enabled or not. For the most part the usage is the same,
101
118
/// the main difference being how parsing errors are reported to the caller. When exceptions are enabled
102
-
/// a toml::parse_error is thrown directly from the site of the error:
119
+
/// a successful call to a parsing function simply returns a toml::table, whereas a failed call sees a toml::parse_error
120
+
/// thrown directly from the site of the error:
103
121
/// \cpp
104
122
/// #include <iostream>
105
123
/// #include <fstream> //required for parse_file()
@@ -129,7 +147,7 @@
129
147
///
130
148
/// \ecpp
131
149
///
132
-
/// When exceptions are disabled parsing methods return a toml::parse_result and it is up to the caller
150
+
/// When exceptions are disabled parsing functions return a toml::parse_result instead and it is up to the caller
133
151
/// to check if parsing has been successful by examining the return value:
134
152
/// \cpp
135
153
/// #include <iostream>
@@ -341,9 +359,13 @@
341
359
///
342
360
/// \section mainpage-license License
343
361
///
344
-
/// toml++ is licensed under the terms of the MIT license - see [LICENSE](https://github.com/marzer/tomlplusplus/blob/master/LICENSE).
362
+
/// toml++ is licensed under the terms of the MIT license - see
/// UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's 'Flexible and Economical UTF - 8 Decoder', which is also subject
347
-
/// to the terms of the MIT license - see [LICENSE-utf8-decoder](https://github.com/marzer/tomlplusplus/blob/master/LICENSE-utf8-decoder).
365
+
/// UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's
366
+
/// 'Flexible and Economical UTF - 8 Decoder', which is also subject to the terms of the MIT license - see
0 commit comments