Boost logo

Boost :

Subject: [boost] [property tree] boost::filesystem::path
From: Johan Råde (rade_at_[hidden])
Date: 2008-09-22 15:45:57

Currently there is a problem when you put and then get
a boost::filesystem::path to/from a property tree.
When you get the path, then the path is first read into a string.
Then a stringstream is constructed, and the path is extracted from the stringstream.
The problem is that when you extract a path from a stream
and the path contains spaces, then the path is truncated at the first space.

The solution may be to specialize struct boost::property_tree::detail::extractor
for boost::filesystem::basic_path.
Instead of using a stringstream you can directly convert a string to a path.

--Johan Råde

Boost list run by bdawes at, gregod at, cpdaniel at, john at