Re: [Boost-bugs] [Boost C++ Libraries] #878: error C2039: 'mbstate_t' : is not a member of 'std'

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #878: error C2039: 'mbstate_t' : is not a member of 'std'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-22 10:08:10


#878: error C2039: 'mbstate_t' : is not a member of 'std'
----------------------------+-----------------------------------------------
  Reporter: farid_zaripov | Owner: ramey
      Type: Bugs | Status: reopened
 Milestone: | Component: serialization
   Version: None | Severity: Showstopper
Resolution: | Keywords:
----------------------------+-----------------------------------------------
Comment (by faridz_at_[hidden]):

 The error in utf8_codecvt_facet.hpp:
 {{{
 utf8_codecvt_facet.cpp
 ..\boost/detail/utf8_codecvt_facet.hpp(114) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\boost/detail/utf8_codecvt_facet.hpp(122) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\boost/detail/utf8_codecvt_facet.hpp(132) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\boost/detail/utf8_codecvt_facet.hpp(161) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\boost/detail/utf8_codecvt_facet.hpp(179) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\boost/detail/utf8_codecvt_facet.hpp(117) : error C2039: 'mbstate_t' :
 is not a member of 'std'
 ..\libs/detail/utf8_codecvt_facet.cpp(35) : error C2039: 'mbstate_t' : is
 not a member of 'std'
 ..\libs/detail/utf8_codecvt_facet.cpp(112) : error C2039: 'mbstate_t' : is
 not a member of 'std'
 ..\libs/detail/utf8_codecvt_facet.cpp(174) : error C2039: 'mbstate_t' : is
 not a member of 'std'
 }}}

   The patch:

 {{{
 Index: boost/detail/utf8_codecvt_facet.hpp
 ===================================================================
 --- boost/detail/utf8_codecvt_facet.hpp (revision 42908)
 +++ boost/detail/utf8_codecvt_facet.hpp (working copy)
 @@ -96,6 +96,8 @@
      #elif defined(BOOST_NO_STDC_NAMESPACE)
          using ::mbstate_t;
          using ::codecvt;
 + #elif defined(BOOST_RWSTD_VER)
 + using ::mbstate_t;
      #endif
  } // namespace std
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/878#comment:6>
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