Truncate fractional time precision #127
Labels
bug
Something isn't working
implemented in v3
Fixes + features which were implemented in v3 release.
TOML spec
An issue relating to the library's TOML spec conformance.
Environment
toml++ version and/or commit hash:
v3 f3bd22b
Compiler:
gcc 11.1.0
C++ standard mode:
c++20
Target arch:
linux x86_64
Library configuration overrides:
n/a
Relevant compilation flags:
meson build_tt --buildtype=release -Dbuild_tt_encoder=true -Dbuild_tt_decoder=true -Dgenerate_cmake_config=false
Describe the bug
Given the TOML document
0=00:00:00.0000000000
, the parser returns an error:Steps to reproduce
Compile toml-test decoder and use the following on the command-line:
Additional Information
This may be an implementation detail that should be ignored, but I'm reporting it anyway. I expected the precision to be truncated instead of seeing an error.
The TOML spec:
If this is the desired behavior, let me know. Thanks
The text was updated successfully, but these errors were encountered: