Changing format of program_options
2 Sep
2013
2 Sep
'13
8:08 p.m.
Hi, I have tried to read config file using boost::program_options where I have large floating pointing numbers like [test_section] test = 1.432e43 but seems that I get bad an error message "boost::bad_any_cast: failed conversion using boost::any_cast" when I am reading the value from program_options::variables_map. Reading works perfectly when I am using numbers like [test_section] a = 13.62 but scientific format fails. Should I tell to variables_map somehow what is the format of floating point numbers or should I do something else? -Heikki
4104
Age (days ago)
4104
Last active (days ago)
0 comments
1 participants
participants (1)
-
Heikki Virtanen