Opened 14 years ago
Closed 14 years ago
#2382 closed Bugs (fixed)
[filesystem] mbstate_t is not a member of std in libs/filesystem/example/mbpath.cpp
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Boost 1.37.0 | Component: | filesystem |
Version: | Boost Development Trunk | Severity: | Showstopper |
Keywords: | Cc: |
Description
From 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>
Note:
See TracTickets
for help on using tickets.
Thanks for the patch! The same problem was also fixed in wide_test.
--Beman