
22 Sep
2008
22 Sep
'08
7:45 p.m.
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