[Boost-bugs] [Boost C++ Libraries] #4645: ptree_implementation.hpp does not compile with MS Visual Studio 2010

Subject: [Boost-bugs] [Boost C++ Libraries] #4645: ptree_implementation.hpp does not compile with MS Visual Studio 2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-13 14:23:48


#4645: ptree_implementation.hpp does not compile with MS Visual Studio 2010
----------------------------------------+-----------------------------------
 Reporter: Harald.Rieder@… | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------------------
 With VC++ 2008 Express it compiled, but no more with VS 2010 Professional.

 This is the code
 {{{
     ...
     ptree::iterator test; // is in line 44
     ....
 }}}

 This is the error message
 {{{
 1>D:\HR09044\EPM\Boost\boost/property_tree/detail/ptree_implementation.hpp(30):
 error C2440: 'specialization': 'const std::string
 std::_Pair_base<_Ty1,_Ty2>::* ' kann nicht in 'const
 std::basic_string<_Elem,_Traits,_Ax> std::pair<_Ty1,_Ty2>::* ' konvertiert
 werden
 1> with
 1> [
 1> _Ty1=const std::string,
 1>
 _Ty2=boost::property_tree::basic_ptree<std::string,std::string>
 1> ]
 1> and
 1> [
 1> _Elem=char,
 1> _Traits=std::char_traits<char>,
 1> _Ax=std::allocator<char>,
 1> _Ty1=const std::string,
 1>
 _Ty2=boost::property_tree::basic_ptree<std::string,std::string>
 1> ]
 1> Die Standardkonvertierung von Zeiger auf Member einer
 Basisklasse in Zeiger auf Member einer abgeleiteten Klasse wird nicht auf
 Vorlagenargumente angewendet.
 1>
 D:\HR09044\EPM\Boost\boost/property_tree/detail/ptree_implementation.hpp(55):
 Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-
 template "boost::property_tree::basic_ptree<Key,Data>::subs".
 1> with
 1> [
 1> Key=std::string,
 1> Data=std::string
 1> ]
 1> src/Lokalbus.cpp(44): Siehe Verweis auf die Instanziierung der
 gerade kompilierten Klassen-template
 "boost::property_tree::basic_ptree<Key,Data>::iterator".
 1> with
 1> [
 1> Key=std::string,
 1> Data=std::string
 1> ]
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4645>
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:04 UTC