Hi:

When compiling boost 1.43.0 (release) from the website, I get the following errors with the GraphMl library:

compile-c-c++ bin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static\graphml.obj

graphml.cpp

C:\Program Files\boost\boost/property_tree/detail/ptree_implementation.hpp(30) : error C2440: 'specialization' : cannot convert from 'const std::string std::_Pair_base<_Ty1,_Ty2>::* ' to 'const std::basic_string<_Elem,_Traits,_Ax> std::pair<_Ty1,_Ty2>::* '

        with

        [

            _Ty1=const std::string,

            _Ty2=boost::property_tree::basic_ptree<std::string,std::string>

        ]

        and

        [

            _Elem=char,

            _Traits=std::char_traits<char>,

            _Ax=std::allocator<char>,

            _Ty1=const std::string,

            _Ty2=boost::property_tree::basic_ptree<std::string,std::string>

        ]

        Standard conversion from pointer-to-member of base to pointer-to-member of derived is not applied for template arguments

        C:\Program Files\boost\boost/property_tree/detail/ptree_implementation.hpp(78) : see reference to class template instantiation 'boost::property_tree::basic_ptree<Key,Data>::subs' being compiled

        with

        [

            Key=std::string,

            Data=std::string

        ]

        C:\Program Files\boost\boost/foreach.hpp(265) : see reference to class template instantiation 'boost::property_tree::basic_ptree<Key,Data>::const_iterator' being compiled

        with

        [

            Key=std::string,

            Data=std::string

        ]

        libs\graph\src\graphml.cpp(37) : see reference to class template instantiation 'boost::foreach_detail_::auto_any<T>' being compiled

        with

        [

            T=boost::property_tree::basic_ptree<std::string,std::string>::const_iterator

        ]

 

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul

cl /Zm800 -nologo @"bin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static\graphml.obj.rsp"

 

...failed compile-c-c++ bin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static\graphml.obj...

...skipped <pbin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static>libboost_graph-vc100-sgd-1_43.lib for lack of <pbin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static>graphml.obj...

...skipped <pstage\lib>libboost_graph-vc100-sgd-1_43.lib for lack of <pbin.v2\libs\graph\build\msvc-10.0\debug\link-static\runtime-link-static>libboost_graph-vc100-sgd-1_43.lib...

...skipped <pstage\lib>libboost_graph-vc100-sgd.lib for lack of <pstage\lib>libboost_graph-vc100-sgd-1_43.lib...

Visual studio 2010, windows xp 32-bit.

Could a patch be provided, or is there a fix. I’ve not checked with the latest svn trunk, as I’m restricted to building with 1.43.

Cheers

Sean.