puppetlabs / cpp-hocon

A C++ port of the Typesafe Config library.
Other
81 stars 57 forks source link

HOCON failed to parse a list of double when one of them double has all zero after decimal place, such as 1.0000 #140

Open franknj opened 1 month ago

franknj commented 1 month ago

Describe the Bug

hocon::config::get_double_list throws exception of "The list did not contain only the desired type" when parsing [1.004, 1.33, 1.000]

Expected Behavior

Expect this function to return a vector of double.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Environment

Additional Context

Add any other context about the problem here.