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-21 22:07:51


#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:
----------------------------+-----------------------------------------------
Changes (by faridz_at_[hidden]):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

 Ticked fixed not completely:


 {{{
 ..\boost\archive\codecvt_null.hpp(37) : error C2039: 'mbstate_t' : is not
 a member of 'operator``global namespace'''
 ..\boost\archive\codecvt_null.hpp(37) : error C2873: 'mbstate_t' : symbol
 cannot be used in a using-declaration
 ..\boost\archive\codecvt_null.hpp(48) : error C2039: 'mbstate_t' : is not
 a member of 'std'
 ..\boost\archive\codecvt_null.hpp(48) : error C2065: 'mbstate_t' :
 undeclared identifier
 ..\boost\archive\codecvt_null.hpp(48) : error C2955: 'std::codecvt' : use
 of class template requires template argument list
         D:\stdcxx\4.2.x\include\loc\_codecvt.h(171) : see declaration of
 'std::codecvt'
 ..\boost\archive\codecvt_null.hpp(60) : error C2039: 'mbstate_t' : is not
 a member of 'std'
 ..\boost\archive\codecvt_null.hpp(60) : error C3861: 'mbstate_t':
 identifier not found, even with argument-dependent lookup
 ..\boost\archive\codecvt_null.hpp(60) : error C2955: 'std::codecvt' : use
 of class template requires template argument list
         D:\stdcxx\4.2.x\include\loc\_codecvt.h(171) : see declaration of
 'std::codecvt'
 ..\boost\archive\codecvt_null.hpp(64) : error C2039: 'mbstate_t' : is not
 a member of 'std'
 ..\boost\archive\codecvt_null.hpp(64) : error C2061: syntax error :
 identifier 'mbstate_t'
 ..\boost\archive\codecvt_null.hpp(74) : error C2039: 'mbstate_t' : is not
 a member of 'std'
 ..\boost\archive\codecvt_null.hpp(74) : error C2061: syntax error :
 identifier 'mbstate_t'
 }}}

 The patch:

 {{{
 Index: boost/archive/codecvt_null.hpp
 ===================================================================
 --- boost/archive/codecvt_null.hpp (revision 42906)
 +++ boost/archive/codecvt_null.hpp (working copy)
 @@ -18,6 +18,7 @@

  #include <locale>
  #include <cstddef>
 +#include <wchar.h> // for mbstate_t

  #include <boost/config.hpp>
  #include <boost/archive/detail/auto_link_archive.hpp>
 }}}

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