Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for <boost/std>::filesystem::path #25
Found during use of boost.program_options: A
std::cout << boost::lexical_castboost::filesystem::path("/home/my user");
Reason is the usage of the stream operators which stop on first whitespace
I've just tried the following code
And it throws an exception:
Same story with using std::filesystem::path.
Adding quotes around the path makes the conversion succeed:
Note that outputting a
The existing behavior of the boost::lexical_cast is perfectly right. I'll add tests to make sure that the behavior doesn't change in the future. After that the ticket will be closed.