$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r63525 - trunk/libs/filesystem/v3/example
From: bdawes_at_[hidden]
Date: 2010-07-02 14:57:38
Author: bemandawes
Date: 2010-07-02 13:22:35 EDT (Fri, 02 Jul 2010)
New Revision: 63525
URL: http://svn.boost.org/trac/boost/changeset/63525
Log:
Use current_path() instead of now deprecated initial_path()
Text files modified: 
   trunk/libs/filesystem/v3/example/simple_ls.cpp |     9 +++++++--                               
   1 files changed, 7 insertions(+), 2 deletions(-)
Modified: trunk/libs/filesystem/v3/example/simple_ls.cpp
==============================================================================
--- trunk/libs/filesystem/v3/example/simple_ls.cpp	(original)
+++ trunk/libs/filesystem/v3/example/simple_ls.cpp	2010-07-02 13:22:35 EDT (Fri, 02 Jul 2010)
@@ -11,7 +11,12 @@
 #define BOOST_FILESYSTEM_VERSION 3
 
 //  As an example program, we don't want to use any deprecated features
-#define BOOST_FILESYSTEM_NO_DEPRECATED
+#ifndef BOOST_FILESYSTEM_NO_DEPRECATED 
+#  define BOOST_FILESYSTEM_NO_DEPRECATED
+#endif
+#ifndef BOOST_SYSTEM_NO_DEPRECATED 
+#  define BOOST_SYSTEM_NO_DEPRECATED
+#endif
 
 #include "boost/filesystem/operations.hpp"
 #include "boost/filesystem/path.hpp"
@@ -22,7 +27,7 @@
 
 int main(int argc, char* argv[])
 {
-  fs::path p(fs::initial_path());
+  fs::path p(fs::current_path());
 
   if (argc > 1)
     p = fs::system_complete(argv[1]);