[Property Tree] Compilation issue with Boost 1.37.0 Beta 1 issue

The property tree version in the trunk works with Boost 1.36 but not with 1.37 Beta 1.
When I compile the following code
istream is;
ptree pt;
read_xml(is, pt);
with MSVS 9.0 I get the following error:
3>C:\Boost\include\boost-1_37\boost/iterator/iterator_adaptor.hpp(230) : error C2027: use of
undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
3> with
3> [
3> x=false
3> ]
3> C:\Boost\include\boost-1_37\boost/iterator/iterator_adaptor.hpp(335) : see reference to
function template instantiation 'void
boost::detail::iterator_adaptor_assert_traversalboost::forward_traversal_tag,boost::random_access_traversal_tag(void)'
being compiled
3> C:\Boost\include\boost-1_37\boost/iterator/iterator_adaptor.hpp(334) : while compiling
class template member function 'void
boost::iterator_adaptor

2008/10/25 Johan Råde
The property tree version in the trunk works with Boost 1.36 but not with 1.37 Beta 1. When I compile the following code
istream is; ptree pt; read_xml(is, pt);
I just noticed this. I think this is my fault, but property tree seems to be entirely unsupported and undocumented which makes dealing with this tricky. This problems doesn't seem to effect any of the tests (although some of them fail for other reasons). Can you post a complete example that fails to compile? The attached patch might help but I can't tell without an example that should be working. Daniel

Hi Daniel, Sorry I missed your post, until now. Here is a self-contained example that reproduces the bug. The code should compile, but does not, at least not with MSVS 9.0. I tested with your patch and it fixes the problem. --Johan Daniel James wrote:
2008/10/25 Johan Råde
: The property tree version in the trunk works with Boost 1.36 but not with 1.37 Beta 1. When I compile the following code
istream is; ptree pt; read_xml(is, pt);
I just noticed this. I think this is my fault, but property tree seems to be entirely unsupported and undocumented which makes dealing with this tricky. This problems doesn't seem to effect any of the tests (although some of them fail for other reasons). Can you post a complete example that fails to compile? The attached patch might help but I can't tell without an example that should be working.
Daniel

2008/11/22 Johan Råde
Hi Daniel,
Sorry I missed your post, until now.
Here is a self-contained example that reproduces the bug. The code should compile, but does not, at least not with MSVS 9.0.
I tested with your patch and it fixes the problem.
Thanks. I've checked in the fix along with a few other changes I needed to test it. It turned out that there is a test for this, but it wasn't included in the appropriate jamfile. Daniel
participants (2)
-
Daniel James
-
Johan Råde