Comments (1)
toml::parse
returns toml::value
that contains toml::table
, not toml::table
itself.
It is because toml::parse
also parses additional information such as toml::source_location
and comments (if TOML11_PRESERVE_COMMENTS_BY_DEFAULT
is defined).
Since toml::table
is an alias to std::unordered_map<std::string, toml::value>
, it cannot contain comments or toml::source_location
.
from toml11.
Related Issues (20)
- Preserve hex number format HOT 2
- Requiring CMAKE_CXX_STANDARD is a bug, not a feature
- Segmentation fault while parsing a TOML file
- Improve "unknown value appeared" error message
- precompiled compilation failed due to spec.hpp HOT 2
- Gcc compilation error after upgrade to v4 HOT 3
- -Wunused-result fread()'ing in parser.hpp HOT 1
- Version bump in version.hpp HOT 1
- Is there one way to accelerate the compilation? HOT 2
- Comment parsing failes to correctly resolve \r\n in skip_multiline_spacer HOT 3
- [3.7.0] toml::parse can not handle array like testArray = [ 1.0, inf.0, ] HOT 1
- Troubles with using `into_toml` member function HOT 3
- Rationale behind thread_local for color_mode singleton HOT 8
- toml::format incorrectly formats an empty array of tables which fails to be parsed later on HOT 2
- Problem with MacOS HOT 2
- No consistent order when saving large toml files HOT 2
- ‘<unnamed>.toml::detail::region::last_’ may be used uninitialized
- try_parse with std::string_view HOT 1
- TOML11_DEFINE_CONVERSION_NON_INTRUSIVE does not compile in msvc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toml11.