Boost logo

Boost Users :

Subject: [Boost-users] Build error with boost-1.45.0 in ptree_implementation.hpp
From: Sunil Thomas (sgthomas27_at_[hidden])
Date: 2011-10-29 00:22:15


Hi all!
   I am getting the following error with boost-1.45.0 using MS VS 2010
Profession, Win64
(Windows Vista 64 bit). Appreciate if anyone knows a fix. This error was
seen with older
versions like 1.41 and so on; hence, it must've been fixed by now.

<path\to>\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
        <path\to>\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
        ]
        <path\to>\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(36) : 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
        ]

Appreciate any help!
Thanks,
--Sunil.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net