Re: [Boost-bugs] [Boost C++ Libraries] #1414: Warning suppression desirable for ios_state

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1414: Warning suppression desirable for ios_state
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-01 19:57:36


#1414: Warning suppression desirable for ios_state
-------------------------------+--------------------------------------------
  Reporter: pbristow | Owner: dlwalker
      Type: Feature Requests | Status: new
 Milestone: Boost 1.36.0 | Component: io
   Version: Boost 1.34.1 | Severity: Cosmetic
Resolution: | Keywords: warning ios_state
-------------------------------+--------------------------------------------
Comment (by Richard Webb <richard.webb_at_[hidden]>):

 Running the ios tests on VC9 with warning level 4 results in the warnings:

 {{{
 boost/io/ios_state.hpp(131) : warning C4512:
 'boost::io::basic_ios_iostate_saver<Ch>' : assignment operator could not
 be generated
 boost/io/ios_state.hpp(159) : warning C4512:
 'boost::io::basic_ios_exception_saver<Ch>' : assignment operator could not
 be generated
 boost/io/ios_state.hpp(183) : warning C4512:
 'boost::io::basic_ios_tie_saver<Ch>' : assignment operator could not be
 generated
 boost/io/ios_state.hpp(207) : warning C4512:
 'boost::io::basic_ios_rdbuf_saver<Ch>' : assignment operator could not be
 generated
 boost/io/ios_state.hpp(231) : warning C4512:
 'boost::io::basic_ios_fill_saver<Ch>' : assignment operator could not be
 generated
 boost/io/ios_state.hpp(256) : warning C4512:
 'boost::io::basic_ios_locale_saver<Ch>' : assignment operator could not be
 generated
 boost/io/ios_state.hpp(395) : warning C4512:
 'boost::io::basic_ios_all_saver<Ch>' : assignment operator could not be
 generated
 }}}

 Some of the classes in ios_state.hpp already have private assignment
 operators, which avoids this warning. The attached patch adds them to the
 other classes, and silences the rest of the warnings.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1414#comment:1>
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:49:57 UTC