Program Options MacOS Error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Program Options MacOS Error

Boost - Users mailing list
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 mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users