Subject: [Boost-bugs] [Boost C++ Libraries] #4145: compile errors property_tree std::wstring
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-24 15:33:09
#4145: compile errors property_tree std::wstring
--------------------------------------------------+-------------------------
Reporter: Jan-Hein Bührman <buhrman@â¦> | Owner: cornedbee
Type: Bugs | Status: new
Milestone: | Component: property_tree
Version: Boost Development Trunk | Severity: Showstopper
Keywords: property_tree wstring cygwin |
--------------------------------------------------+-------------------------
When compiling today's development trunk of boost, I see the following
errors:
{{{
[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 '&' token
[snip]
}}}
It seems that a reference to {{{std::wstring}}} is not protected by the
appropriate boost feature flag.
bjam was generated in the follwing way:
{{{
$ ./bootstrap.sh --prefix=$HOME/local --exec-
prefix=$HOME/local/${MACHTYPE=i686-pc-cygwin}
}}}
It is compiled on Windows XP machine, under a recent update of Cygwin.
{{{
$ 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.
}}}
Attached {{{svn diff}}} seems to solve the compilation errors.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4145> 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:50:03 UTC