Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59623 - sandbox/filesystem-v3/boost/filesystem
From: bdawes_at_[hidden]
Date: 2010-02-10 12:22:47


Author: bemandawes
Date: 2010-02-10 12:22:46 EST (Wed, 10 Feb 2010)
New Revision: 59623
URL: http://svn.boost.org/trac/boost/changeset/59623

Log:
Fix #3884
Text files modified:
   sandbox/filesystem-v3/boost/filesystem/fstream.hpp | 82 +++++++++++++++++++--------------------
   1 files changed, 40 insertions(+), 42 deletions(-)

Modified: sandbox/filesystem-v3/boost/filesystem/fstream.hpp
==============================================================================
--- sandbox/filesystem-v3/boost/filesystem/fstream.hpp (original)
+++ sandbox/filesystem-v3/boost/filesystem/fstream.hpp 2010-02-10 12:22:46 EST (Wed, 10 Feb 2010)
@@ -34,17 +34,17 @@
   class basic_filebuf : public std::basic_filebuf<charT,traits>
   {
   private: // disallow copying
- basic_filebuf( const basic_filebuf & );
- const basic_filebuf & operator=( const basic_filebuf & );
+ basic_filebuf(const basic_filebuf&);
+ const basic_filebuf& operator=(const basic_filebuf&);
 
   public:
     basic_filebuf() {}
     virtual ~basic_filebuf() {}
 
- basic_filebuf<charT,traits> *
- open( const path & p, std::ios_base::openmode mode )
+ basic_filebuf<charT,traits>*
+ open(const path& p, std::ios_base::openmode mode)
     {
- return std::basic_filebuf<charT,traits>::open( p.c_str(), mode )
+ return std::basic_filebuf<charT,traits>::open(p.c_str(), mode)
         ? this : 0;
     }
   };
@@ -57,8 +57,8 @@
   class basic_ifstream : public std::basic_ifstream<charT,traits>
   {
   private: // disallow copying
- basic_ifstream( const basic_ifstream & );
- const basic_ifstream & operator=( const basic_ifstream & );
+ basic_ifstream(const basic_ifstream&);
+ const basic_ifstream& operator=(const basic_ifstream&);
 
   public:
     basic_ifstream() {}
@@ -66,17 +66,17 @@
     // use two signatures, rather than one signature with default second
     // argument, to workaround VC++ 7.1 bug (ID VSWhidbey 38416)
 
- explicit basic_ifstream( const path & p )
- : std::basic_ifstream<charT,traits>( p.c_str(), std::ios_base::in ) {}
+ explicit basic_ifstream(const path& p)
+ : std::basic_ifstream<charT,traits>(p.c_str(), std::ios_base::in) {}
 
- basic_ifstream( const path & p, std::ios_base::openmode mode )
- : std::basic_ifstream<charT,traits>( p.c_str(), mode | std::ios_base::in ) {}
+ basic_ifstream(const path& p, std::ios_base::openmode mode)
+ : std::basic_ifstream<charT,traits>(p.c_str(), mode) {}
 
- void open( const path & p )
- { std::basic_ifstream<charT,traits>::open( p.c_str(), std::ios_base::in ); }
+ void open(const path& p)
+ { std::basic_ifstream<charT,traits>::open(p.c_str(), std::ios_base::in); }
 
- void open( const path & p, std::ios_base::openmode mode )
- { std::basic_ifstream<charT,traits>::open( p.c_str(), mode | std::ios_base::in ); }
+ void open(const path& p, std::ios_base::openmode mode)
+ { std::basic_ifstream<charT,traits>::open(p.c_str(), mode); }
 
     virtual ~basic_ifstream() {}
   };
@@ -89,8 +89,8 @@
   class basic_ofstream : public std::basic_ofstream<charT,traits>
   {
   private: // disallow copying
- basic_ofstream( const basic_ofstream & );
- const basic_ofstream & operator=( const basic_ofstream & );
+ basic_ofstream(const basic_ofstream&);
+ const basic_ofstream& operator=(const basic_ofstream&);
 
   public:
     basic_ofstream() {}
@@ -98,17 +98,17 @@
     // use two signatures, rather than one signature with default second
     // argument, to workaround VC++ 7.1 bug (ID VSWhidbey 38416)
 
- explicit basic_ofstream( const path & p )
- : std::basic_ofstream<charT,traits>( p.c_str(), std::ios_base::out ) {}
+ explicit basic_ofstream(const path& p)
+ : std::basic_ofstream<charT,traits>(p.c_str(), std::ios_base::out) {}
 
- basic_ofstream( const path & p, std::ios_base::openmode mode )
- : std::basic_ofstream<charT,traits>( p.c_str(), mode | std::ios_base::out ) {}
+ basic_ofstream(const path& p, std::ios_base::openmode mode)
+ : std::basic_ofstream<charT,traits>(p.c_str(), mode) {}
 
- void open( const path & p )
- { std::basic_ofstream<charT,traits>::open( p.c_str(), std::ios_base::out ); }
+ void open(const path& p)
+ { std::basic_ofstream<charT,traits>::open(p.c_str(), std::ios_base::out); }
 
- void open( const path & p, std::ios_base::openmode mode )
- { std::basic_ofstream<charT,traits>::open( p.c_str(), mode | std::ios_base::out ); }
+ void open(const path& p, std::ios_base::openmode mode)
+ { std::basic_ofstream<charT,traits>::open(p.c_str(), mode); }
 
     virtual ~basic_ofstream() {}
   };
@@ -121,8 +121,8 @@
   class basic_fstream : public std::basic_fstream<charT,traits>
   {
   private: // disallow copying
- basic_fstream( const basic_fstream & );
- const basic_fstream & operator=( const basic_fstream & );
+ basic_fstream(const basic_fstream&);
+ const basic_fstream & operator=(const basic_fstream&);
 
   public:
     basic_fstream() {}
@@ -130,21 +130,19 @@
     // use two signatures, rather than one signature with default second
     // argument, to workaround VC++ 7.1 bug (ID VSWhidbey 38416)
 
- explicit basic_fstream( const path & p )
- : std::basic_fstream<charT,traits>( p.c_str(),
- std::ios_base::in | std::ios_base::out ) {}
-
- basic_fstream( const path & p, std::ios_base::openmode mode )
- : std::basic_fstream<charT,traits>( p.c_str(),
- mode | std::ios_base::in | std::ios_base::out ) {}
-
- void open( const path & p )
- { std::basic_fstream<charT,traits>::open( p.c_str(),
- std::ios_base::in | std::ios_base::out ); }
-
- void open( const path & p, std::ios_base::openmode mode )
- { std::basic_fstream<charT,traits>::open( p.c_str(),
- mode | std::ios_base::in | std::ios_base::out ); }
+ explicit basic_fstream(const path& p)
+ : std::basic_fstream<charT,traits>(p.c_str(),
+ std::ios_base::in | std::ios_base::out) {}
+
+ basic_fstream(const path& p, std::ios_base::openmode mode)
+ : std::basic_fstream<charT,traits>(p.c_str(), mode) {}
+
+ void open(const path& p)
+ { std::basic_fstream<charT,traits>::open(p.c_str(),
+ std::ios_base::in | std::ios_base::out); }
+
+ void open(const path& p, std::ios_base::openmode mode)
+ { std::basic_fstream<charT,traits>::open(p.c_str(), mode); }
 
     virtual ~basic_fstream() {}
 


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