|
Boost Users : |
From: Michael Chiu (chiumichel_at_[hidden])
Date: 2019-09-10 22:28:50
Hi All,
I was trying to use boost program options to capture a std::string like
the examples in the documentation. However I keep getting the error:
libc++abi.dylib: terminating with uncaught exception of type
boost::wrapexcept<boost::bad_any_cast>
when i try to retrieve the value from the valuemap, i.e.
vm["source"].as<std::string>();
The code that I have (which right now is essentially the tutorial
example) runs fine on linux but has the above error on macos.
Am i doing something wrong or is this a genuine platform specific bug?
Sincerely,
--Michael
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net