Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-11-10 01:32:52


On Saturday, November 9, 2002, at 11:23 AM, Beman Dawes wrote:

> it sounds to me as if boost::filesystem::path's system_specific
> constructor and access functions should be used for Macintosh style
> paths, and the generic constructor and access functions (as always) be
> used for generic (ie POSIX) paths.

That sounds like a good plan.

     -- Darin

PS

> Thus:
>
> path p1( "a:b", system_specific );
> path p2( "a/b" );
> cout << p1.generic_path() << " " << p1.file_path() << endl;
> cout << p2.generic_path() << " " << p2.file_path() << endl;
>
> Should output:
>
> a/b a:b
> a/b a:b

Well, to be pedantic, it would output something more like:

     /a/b a:b
     a/b :a:b

Come to think of it, on OS X, it would actually need to be:

     /Volumes/a/b a:b
     a/b :a:b

But I get your drift.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk