Subject: Re: [boost] [filesystem][lexical_cast] Lexical cast of filenames containing spaces
From: Beman Dawes (bdawes_at_[hidden])
Date: 2010-08-16 09:59:21
On Sat, Aug 14, 2010 at 6:20 AM, Daniel James <dnljms_at_[hidden]> wrote:
> The problem is that filesystem v3's stream extractor treats spaces as
> separators (which is the right thing to do IMO), so it only extracts
#define BOOST_FILESYSTEM_VERSION 3
boost::filesystem::path p("file name");
std::cout << p;
The output is "file name".
Could you be forgetting #define BOOST_FILESYSTEM_VERSION 3?
For 1.44.0, the default is still version 2, and for 1.44.0 that
produces file name without the quotes.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk