Hi,
Could someone give me a well tested example of how to rename a file using an
iterator? I've had a variety of attempts all of them failed. For example,
i've tried:
int main()
{
fs::path testPath("testFolder");
fs::directory_iterator startIterator(testPath);
startIterator++;
std::string test="TEST";
fs::rename(startIterator.current_path(),test);
return 0;
}
For this i get the compile error:'current_path': is not a member of the
boost::filesystem::directory_iterator.
I would like ideas on how to fix this or a concrete working example. I
apologize for the noob question.
Thank you.
From: Beman Dawes
Reply-To: boost-users@lists.boost.org
To: Boost-users mailing list
Subject: [Boost-users] BoostCon 2007 Call for Proposals
Date: Sat, 30 Sep 2006 08:39:03 -0400
MIME-Version: 1.0
Received: from wowbagger.osl.iu.edu ([129.79.245.252]) by
bay0-mc3-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sat, 30
Sep 2006 05:39:26 -0700
Received: from wowbagger.osl.iu.edu (localhost [127.0.0.1])by
wowbagger.osl.iu.edu (Postfix) with ESMTP id 824572C04B;Sat, 30 Sep 2006
08:39:16 -0400 (EDT)
Received: from vms044pub.verizon.net (vms044pub.verizon.net
[206.46.252.44])by wowbagger.osl.iu.edu (Postfix) with ESMTP id
39A6010551Ffor ; Sat, 30 Sep 2006 08:39:09
-0400 (EDT)
Received: from [192.168.1.207] ([71.253.224.167])by vms044.mailsrvcs.net
(Sun Java System Messaging Server 6.2-4.02(built Sep9 2005)) with ESMTPA id
<0J6E005EBOH2JMT6@vms044.mailsrvcs.net> forboost-users@lists.boost.org;
Sat, 30 Sep 2006 07:39:02 -0500 (CDT)
X-Message-Info: txF49lGdW42vq0pqHncgq3JC6rGkZrdv4J5iELaXM0s=
X-Original-To: boost-users@lists.boost.org
Delivered-To: boost-users@lists.boost.org
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
X-BeenThere: boost-users@lists.boost.org
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Boost Users mailing list
List-Unsubscribe:
http://lists.boost.org/mailman/listinfo.cgi/boost-users,mailto:boost-users-request@lists.boost.org?subject=unsubscribe
List-Archive: http://lists.boost.org/MailArchives/boost-users
List-Post: mailto:boost-users@lists.boost.org
List-Help: mailto:boost-users-request@lists.boost.org?subject=help
List-Subscribe:
http://lists.boost.org/mailman/listinfo.cgi/boost-users,mailto:boost-users-request@lists.boost.org?subject=subscribe
Errors-To: boost-users-bounces@lists.boost.org
Return-Path: boost-users-bounces@lists.boost.org
X-OriginalArrivalTime: 30 Sep 2006 12:39:26.0740 (UTC)
FILETIME=[7729FD40:01C6E48D]
The first annual Boost conference will take place in Aspen, Colorado,
May 14-18, 2007.
BoostCon 2007 is looking for session presenters. We invite you to
propose a session. For details on how to become a presenter, see
www.boost.org/more/BoostCon07_session_call.html
This inaugural Boost conference promises to be the main face-to-face
venue for all things Boost, from using libraries to writing them, from
evangelizing Boost to deployment within your organization, from
infrastructure and process to vision and mission, and from TR1 to TR2.
Given the range and interests of the participants, the event is going to
be intense and in-depth.
For more information about the conference, see
www.boost.org/more/BoostCon07.html
--The Organizing Committee
David Abrahams Beman Dawes Jeff Garland
Joel de Guzman Kevlin Henney Howard Hinnant
Scott Meyers Eric Niebler Sean Parent
Rene Rivera Jeremy Siek Matthias Troyer
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users