Boost C++ Libraries: Ticket #4145: [patch] compile errors property_tree std::wstring https://svn.boost.org/trac10/ticket/4145 <p> When compiling today's development trunk of boost, I see the following errors: </p> <pre class="wiki">[snip] gcc.compile.c++ bin.v2/libs/graph/build/gcc-3.4.4/release/threading-multi/graphml.o In file included from ./boost/property_tree/ptree.hpp:15, from ./boost/property_tree/detail/file_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_utils.hpp:14, from ./boost/graph/graphml.hpp:26, from libs\graph\src\graphml.cpp:17: ./boost/property_tree/ptree_fwd.hpp:92: error: `wstring' is not a member of `std' [snip] In file included from ./boost/property_tree/ptree.hpp:16, from ./boost/property_tree/detail/file_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_error.hpp:13, from ./boost/property_tree/detail/xml_parser_utils.hpp:14, from ./boost/graph/graphml.hpp:26, from libs\graph\src\graphml.cpp:17: ./boost/property_tree/string_path.hpp:60: error: expected unqualified-id before '&amp;' token [snip] </pre><p> It seems that a reference to <code>std::wstring</code> is not protected by the appropriate boost feature flag. </p> <p> bjam was generated in the follwing way: </p> <pre class="wiki">$ ./bootstrap.sh --prefix=$HOME/local --exec-prefix=$HOME/local/${MACHTYPE=i686-pc-cygwin} </pre><p> It is compiled on Windows XP machine, under a recent update of Cygwin. </p> <pre class="wiki">$ g++ --version g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </pre><p> Attached <code>svn diff</code> seems to solve the compilation errors. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4145 Trac 1.4.3 Jan-Hein Bührman <buhrman@…> Sat, 24 Apr 2010 15:35:11 GMT attachment set https://svn.boost.org/trac10/ticket/4145 https://svn.boost.org/trac10/ticket/4145 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-property_tree-fix.diff</span> </li> </ul> Ticket Jan-Hein Bührman <buhrman@…> Mon, 26 Apr 2010 09:21:59 GMT summary changed https://svn.boost.org/trac10/ticket/4145#comment:1 https://svn.boost.org/trac10/ticket/4145#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">compile errors property_tree std::wstring</span> → <span class="trac-field-new">[patch] compile errors property_tree std::wstring</span> </li> </ul> Ticket Sebastian Redl Tue, 27 Apr 2010 08:49:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4145#comment:2 https://svn.boost.org/trac10/ticket/4145#comment:2 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61604" title="Fix property tree for systems without wstring. Fixes bug 4145">[61604]</a>) Fix property tree for systems without wstring. Fixes bug 4145 </p> Ticket