[Boost-bugs] [Boost C++ Libraries] #1196: Patch: when BOOST_NO_STD_LOCALE is not defined, boost/format/internals.hpp fails to compile.

Subject: [Boost-bugs] [Boost C++ Libraries] #1196: Patch: when BOOST_NO_STD_LOCALE is not defined, boost/format/internals.hpp fails to compile.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-21 12:05:09


#1196: Patch: when BOOST_NO_STD_LOCALE is not defined, boost/format/internals.hpp
fails to compile.
-------------------------------+--------------------------------------------
 Reporter: andyc_at_[hidden] | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
 Severity: Problem | Keywords:
-------------------------------+--------------------------------------------
 With gcc, we get a compile error when BOOST_NO_STD_LOCALE is not defined:

 .../boost/format/internals.hpp:106: warning: unused parameter
 `locale_t*loc_default'

 The following patch fixes it:


 {{{
 ===== boost/format/internals.hpp 1.1 vs + =====
 --- 1.1/boost/format/internals.hpp 2007-08-17 11:57:50 +01:00
 +++ +/boost/format/internals.hpp 2007-08-17 13:26:09 +01:00
 @@ -104,6 +104,7 @@
      template<class Ch, class Tr>
      void stream_format_state<Ch,Tr>:: apply_on (basic_ios & os,
                        boost::io::detail::locale_t * loc_default) const {
 + (void) loc_default; // keep compiler quiet if we don't support
 locales
          // set the state of this stream according to our params
          if(width_ != -1)
              os.width(width_);

 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1196>
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:56 UTC