Re: [Boost-bugs] [Boost C++ Libraries] #3884: boost fstream 'enforces' in AND out mode. It should be be possible to open a read-only file using fstream.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3884: boost fstream 'enforces' in AND out mode. It should be be possible to open a read-only file using fstream.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-02 18:00:05


#3884: boost fstream 'enforces' in AND out mode. It should be be possible to open
a read-only file using fstream.
---------------------------------------------+------------------------------
 Reporter: Sachin Garg <schngrg@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
Changes (by Sachin Garg <schngrg@…>):

 * cc: schngrg@… (added)

Comment:

 Also, boost::fstream is implemented as a wrapper over std::fstream (it
 uses a std::fstream object internally), which means that if any changes to
 'mode' value are indeed needed, then the std::fstream::open() can do that
 internally. I am unable to see the reason for boost's wrapper to change
 its value before passing it to std::fstream.

 (We are using boost's fstream because it lets us directly use wpath
 filenames which is is huge convenience compared to using std::fstream's
 char*)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3884#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC