mayah / tinytoml

A header only C++11 library for parsing TOML
BSD 2-Clause "Simplified" License
167 stars 31 forks source link

parse error on double numbers #52

Open rejuce opened 10 months ago

rejuce commented 10 months ago

i ahve a toml file that uses for double numbers a leading 0 in the exponent

Distortion-Factors = [ 8.246,0.0812962,-0.000452233,0.109974,-5.38649e-05, 2.77189e-08, ]

with that parsins throws exception

Distortion-Factors = [ 8.246,0.0812962,-0.000452233,0.109974,-5.38649e-5, 2.77189e-8, ] removing leading zeros in exponent fixes the issue, but quite problematic