Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59622 - trunk/boost/filesystem
From: bdawes_at_[hidden]
Date: 2010-02-10 12:21:43


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

Log:
Fix #3884
Text files modified:
   trunk/boost/filesystem/fstream.hpp | 24 ++++++++++++------------
   1 files changed, 12 insertions(+), 12 deletions(-)

Modified: trunk/boost/filesystem/fstream.hpp
==============================================================================
--- trunk/boost/filesystem/fstream.hpp (original)
+++ trunk/boost/filesystem/fstream.hpp 2010-02-10 12:21:41 EST (Wed, 10 Feb 2010)
@@ -298,14 +298,14 @@
       typename boost::enable_if<is_basic_path<Path> >::type* )
       : std::basic_ifstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in ) {}
+ mode ).c_str(), mode ) {}
 
     template <class charT, class traits>
     basic_ifstream<charT,traits>::basic_ifstream( const wpath & file_ph,
       std::ios_base::openmode mode )
       : std::basic_ifstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in ) {}
+ mode ).c_str(), mode ) {}
 
     template <class charT, class traits> template<class Path>
     typename boost::enable_if<is_basic_path<Path>, void>::type
@@ -331,7 +331,7 @@
     {
       std::basic_ifstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in );
+ mode ).c_str(), mode );
     }
     
     template <class charT, class traits>
@@ -340,7 +340,7 @@
     {
       std::basic_ifstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in );
+ mode ).c_str(), mode );
     }
 
 // basic_ofstream definitions ----------------------------------------------//
@@ -364,14 +364,14 @@
       typename boost::enable_if<is_basic_path<Path> >::type* )
       : std::basic_ofstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::out ) {}
+ mode ).c_str(), mode ) {}
 
     template <class charT, class traits>
     basic_ofstream<charT,traits>::basic_ofstream( const wpath & file_ph,
       std::ios_base::openmode mode )
       : std::basic_ofstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::out ) {}
+ mode ).c_str(), mode ) {}
     
     template <class charT, class traits> template<class Path>
     typename boost::enable_if<is_basic_path<Path>, void>::type
@@ -397,7 +397,7 @@
     {
       std::basic_ofstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::out );
+ mode ).c_str(), mode );
     }
 
     template <class charT, class traits>
@@ -406,7 +406,7 @@
     {
       std::basic_ofstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::out );
+ mode ).c_str(), mode );
     }
 
 // basic_fstream definitions -----------------------------------------------//
@@ -432,14 +432,14 @@
       typename boost::enable_if<is_basic_path<Path> >::type* )
       : std::basic_fstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in | std::ios_base::out ) {}
+ mode ).c_str(), mode ) {}
     
     template <class charT, class traits>
     basic_fstream<charT,traits>::basic_fstream( const wpath & file_ph,
       std::ios_base::openmode mode )
       : std::basic_fstream<charT,traits>(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in | std::ios_base::out ) {}
+ mode ).c_str(), mode ) {}
       
     template <class charT, class traits> template<class Path>
     typename boost::enable_if<is_basic_path<Path>, void>::type
@@ -467,7 +467,7 @@
     {
       std::basic_fstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in | std::ios_base::out );
+ mode ).c_str(), mode );
     }
 
     template <class charT, class traits>
@@ -476,7 +476,7 @@
     {
       std::basic_fstream<charT,traits>::open(
         detail::path_proxy( file_ph.external_file_string(),
- mode ).c_str(), mode | std::ios_base::in | std::ios_base::out );
+ mode ).c_str(), mode );
     }
 
 # endif


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