|
Boost : |
From: Thomas Witt (witt_at_[hidden])
Date: 2002-08-15 11:01:34
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 15 August 2002 17:27, Vladimir Prus wrote:
> Hi,
> I'd like to append a suffix to a path using the filesystem library, so that
>
> directory/path.asm
>
> would become
>
> directory/path.asm.cpp
>
> Yet I see no easy way. Is this use case worth supporting?
What about
(untested)
fs::path path_with_suffix(path.branch() << path.leaf() + ".cpp");
- --Thomas
- --
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9W9Bh0ds/gS3XsBoRAmXZAJ4jSfTNAObWXGxrX9kfXJR3CtpOwwCeL3fQ
AgIEK7Ek7/bcg6Es31sahtw=
=cg27
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk