Boost C++ Libraries: Ticket #1589: [filesystem] 'mbstate_t' : is not a member of 'std' https://svn.boost.org/trac10/ticket/1589 <blockquote> <p> The <a class="ext-link" href="http://stdcxx.apache.org/"><span class="icon">​</span>stdcxx</a> is the another implementation of the STL (initially based on <a class="missing wiki">RogueWave</a> STL). </p> </blockquote> <blockquote> <p> The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0. </p> </blockquote> <pre class="wiki">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 </pre><blockquote> <p> The proposed patch: </p> </blockquote> <pre class="wiki">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 &lt;boost/cerrno.hpp&gt; #include &lt;boost/system/error_code.hpp&gt; +#include &lt;cwchar&gt; // fot std::mbstate_t + namespace { // std::locale construction can throw (if LC_MESSAGES is wrong, for example), </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1589 Trac 1.4.3 faridz@… Tue, 22 Jan 2008 19:29:55 GMT <link>https://svn.boost.org/trac10/ticket/1589#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1589#comment:1</guid> <description> <blockquote> <p> An another errors: </p> <pre class="wiki">fstream_test.cpp d:\boost\boost\libs\filesystem\test\lpath.hpp(22) : error C2146: syntax error : missing ';' before identifier 'off_type' d:\boost\boost\libs\filesystem\test\lpath.hpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\boost\boost\libs\filesystem\test\lpath.hpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int </pre></blockquote> <blockquote> <p> The proposed patch: </p> </blockquote> <pre class="wiki">Index: libs/filesystem/test/lpath.hpp =================================================================== --- libs/filesystem/test/lpath.hpp (revision 42908) +++ libs/filesystem/test/lpath.hpp (working copy) @@ -10,6 +10,7 @@ #include &lt;boost/filesystem/path.hpp&gt; #include &lt;string&gt; +#include &lt;ios&gt; // for std::streamoff namespace std { </pre> </description> <category>Ticket</category> </item> <item> <author>faridz@…</author> <pubDate>Tue, 22 Jan 2008 20:09:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1589#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1589#comment:2</guid> <description> <blockquote> <p> The error in wide_test.cpp: </p> <pre class="wiki">wide_test.cpp ..\libs\filesystem\test\wide_test.cpp(109) : error C2039: 'mbstate_t' : is not a member of 'std' ..\libs\filesystem\test\wide_test.cpp(136) : error C2039: 'hex' : is not a member of 'std' ..\libs\filesystem\test\wide_test.cpp(136) : error C2065: 'hex' : undeclared identifier ..\libs\filesystem\test\wide_test.cpp(137) : error C2039: 'dec' : is not a member of 'std' ..\libs\filesystem\test\wide_test.cpp(137) : error C2065: 'dec' : undeclared identifier </pre></blockquote> <blockquote> <p> The proposed patch: </p> <pre class="wiki">Index: libs/filesystem/test/wide_test.cpp =================================================================== --- libs/filesystem/test/wide_test.cpp (revision 42908) +++ libs/filesystem/test/wide_test.cpp (working copy) @@ -30,7 +30,7 @@ namespace fs = boost::filesystem; #include &lt;iostream&gt; -#include &lt;iomanip&gt; +#include &lt;ios&gt; // for std::hex, std::dec #include &lt;string&gt; #include &lt;cerrno&gt; </pre></blockquote> </description> <category>Ticket</category> </item> <item> <author>faridz@…</author> <pubDate>Wed, 04 Jun 2008 10:48:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1589#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1589#comment:3</guid> <description> <p> Ping. </p> </description> <category>Ticket</category> </item> <item> <author>faridz@…</author> <pubDate>Wed, 04 Jun 2008 11:04:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1589#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1589#comment:4</guid> <description> <p> Possibly this can be done in 1.35.1 release? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Wed, 18 Jun 2008 16:05:02 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1589#comment:5 https://svn.boost.org/trac10/ticket/1589#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed. Please reopen if the changes don't solve the problem. </p> <p> Thanks, </p> <p> --Beman </p> Ticket