[Boost-bugs] [Boost C++ Libraries] #2382: [filesystem] mbstate_t is not a member of std in libs/filesystem/example/mbpath.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #2382: [filesystem] mbstate_t is not a member of std in libs/filesystem/example/mbpath.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-03 15:24:33


#2382: [filesystem] mbstate_t is not a member of std in
libs/filesystem/example/mbpath.cpp
-----------------------------------------------+----------------------------
 Reporter: Farid Zaripov <faridz_at_[hidden]> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: filesystem
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: |
-----------------------------------------------+----------------------------
 From [http://tinyurl.com/4lbn5p this log]:

 {{{
     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -m64
 -march=nocona -fPIC -nostdinc++ -DBOOST_ALL_NO_LIB=1
 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -D_RWSTDDEBUG
 -I".." -I"/var/tmp/stdcxx/4.2.x/gcc/11D/include"
 -I"/var/tmp/stdcxx/4.2.x/include" -I"/var/tmp/stdcxx/4.2.x/include/ansi"
 -c -o
 "/var/tmp/boost/results/boost/bin.v2/libs/filesystem/test/mbpath.test/gcc-4.3.0_stdcxx_422/debug
 /address-model-64/architecture-x86/instruction-set-nocona/stdlib-
 stdcxx-4.2.2/mbpath.o" "../libs/filesystem/test/../example/mbpath.cpp"

 ../libs/filesystem/test/../example/mbpath.cpp:27: error: ???mbstate_t???
 is not a member of ???std???
 ../libs/filesystem/test/../example/mbpath.cpp:27: error: ???mbstate_t???
 is not a member of ???std???
 ../libs/filesystem/test/../example/mbpath.cpp:27: error: template argument
 3 is invalid
 ../libs/filesystem/test/../example/mbpath.cpp:28: error: invalid type in
 declaration before ???(??? token
 ../libs/filesystem/test/../example/mbpath.cpp:28: error: ???mbstate_t???
 is not a member of ???std???
 ../libs/filesystem/test/../example/mbpath.cpp:28: error: ???mbstate_t???
 is not a member of ???std???
 ../libs/filesystem/test/../example/mbpath.cpp:28: error: template argument
 3 is invalid
 }}}

   The proposed patch:
 {{{
 Index: libs/filesystem/example/mbpath.cpp
 ===================================================================
 --- libs/filesystem/example/mbpath.cpp (revision 49128)
 +++ libs/filesystem/example/mbpath.cpp (working copy)
 @@ -13,6 +13,7 @@
  # error This compiler or standard library does not support wide-
 character strings or paths
  # endif

 +#include <cwchar>
  #include "mbpath.hpp"
  #include <boost/system/system_error.hpp>
  #include <boost/scoped_array.hpp>
 }}}

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