Doesn't parse Hex Values
jayache80 opened this issue · comments
It doesn't parse hex values. It fails with "Unidentified trailing character 'x'---did you forgot a '#'?"
Testcase:
# test.toml:
TestHex = 0x55
// main.cpp
auto config = cpptoml::parse_file("uc2ui.toml");
auto cfgTestHex = config->get_as<int64_t>("TestHex");
Compiling with visual studio 2015 32-bit, within a QT 5.10.0 framework
Same problem
Eclipse CDT with GNU C++
Would love to see a fix for this
Hex values are not allowed in the v0.4.0 spec, which cpptoml was written to follow.
However, I would be willing to accept any patch that remedies this as the behavior will change upon the release of TOML v1.0.0.