Opened 12 years ago
Closed 12 years ago
#4145 closed Bugs (fixed)
[patch] compile errors property_tree std::wstring
| Reported by: | Owned by: | Sebastian Redl | |
|---|---|---|---|
| Milestone: | Component: | property_tree | |
| Version: | Boost Development Trunk | Severity: | Showstopper |
| Keywords: | property_tree wstring cygwin | Cc: |
Description
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.
Attachments (1)
Change History (3)
by , 12 years ago
| Attachment: | boost-property_tree-fix.diff added |
|---|
comment:1 by , 12 years ago
| Summary: | compile errors property_tree std::wstring → [patch] compile errors property_tree std::wstring |
|---|
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [61604]) Fix property tree for systems without wstring. Fixes bug 4145