Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49085 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2008-10-01 11:50:44


Author: bemandawes
Date: 2008-10-01 11:50:44 EDT (Wed, 01 Oct 2008)
New Revision: 49085
URL: http://svn.boost.org/trac/boost/changeset/49085

Log:
Filesystem; clear ticket #2168
Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2008-10-01 11:50:44 EDT (Wed, 01 Oct 2008)
@@ -112,9 +112,9 @@
 {
   const error_code ok;
 
- const fs::directory_iterator end_itr;
   bool is_empty_directory( const std::string & dir_path )
   {
+ static const fs::directory_iterator end_itr;
     return fs::directory_iterator(fs::path(dir_path)) == end_itr;
   }
 
@@ -133,9 +133,9 @@
   inline DWORD get_file_attributes( const wchar_t * ph )
     { return ::GetFileAttributesW( ph ); }
 
- const fs::wdirectory_iterator wend_itr;
   bool is_empty_directory( const std::wstring & dir_path )
   {
+ static const fs::wdirectory_iterator wend_itr;
     return fs::wdirectory_iterator(fs::wpath(dir_path)) == wend_itr;
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk