[Boost-bugs] [Boost C++ Libraries] #1589: [filesystem] 'mbstate_t' : is not a member of 'std'

Subject: [Boost-bugs] [Boost C++ Libraries] #1589: [filesystem] 'mbstate_t' : is not a member of 'std'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-22 10:50:39


#1589: [filesystem] 'mbstate_t' : is not a member of 'std'
-------------------------------------+--------------------------------------
 Reporter: faridz_at_[hidden] | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.35.0 | Component: filesystem
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: |
-------------------------------------+--------------------------------------
 The [http://stdcxx.apache.org/ stdcxx] is the another implementation of
 the STL (initially based on RogueWave STL).

     The following errors are encountered when running boost regression
 tests on msvc with stdcxx-4.2.0.

 {{{
 path.cpp
 ..\libs\filesystem\src\path.cpp(40) : error C2039: 'mbstate_t' : is not a
 member of 'std'
 ..\libs\filesystem\src\path.cpp(40) : error C2065: 'mbstate_t' :
 undeclared identifier
 ..\libs\filesystem\src\path.cpp(43) : error C2039: 'mbstate_t' : is not a
 member of 'std'
 ..\libs\filesystem\src\path.cpp(45) : error C2039: 'mbstate_t' : is not a
 member of 'std'
 ..\libs\filesystem\src\path.cpp(46) : error C3206: 'std::use_facet' :
 invalid template argument for '_Facet', missing template argument list on
 class template 'std::codecvt'
         D:\stdcxx\4.2.x\include\loc/_locale.h(82) : see declaration of
 'std::use_facet'
 ..\libs\filesystem\src\path.cpp(46) : fatal error C1903: unable to recover
 fromprevious error(s); stopping compilation
 }}}

   The proposed patch:

 {{{
 Index: libs/filesystem/src/path.cpp
 ===================================================================
 --- libs/filesystem/src/path.cpp (revision 42908)
 +++ libs/filesystem/src/path.cpp (working copy)
 @@ -24,6 +24,8 @@
  #include <boost/cerrno.hpp>
  #include <boost/system/error_code.hpp>

 +#include <cwchar> // fot std::mbstate_t
 +
  namespace
  {
    // std::locale construction can throw (if LC_MESSAGES is wrong, for
 example),
 }}}

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