Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.filesystem] query
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2009-02-02 15:56:03


Mickael Wolff wrote:
> Sean Farrow a écrit :
>> Hi: I've sorted this, but when appending to this string, (a new file
>> name)
>> do I need to use 1 or 2 backslashes?

snipped context:

        So either:
        Path.string().append("\\file.dll");
        Or
        Path.string().append("\file.dll");

> You have to buy a book about C++, and read the documentation about the
> ML. You must escape the slash.

Why not use the path operator/ and not worry about these issues. I think
you can:

    Path / "file.dll"

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net