Opened 12 years ago

Closed 12 years ago

#4645 closed Bugs (fixed)

ptree_implementation.hpp does not compile with MS Visual Studio 2010

Reported by: Harald.Rieder@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

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>          ]

Attachments (1)

ptree_error.gif (55.1 KB ) - added by Harald.Rieder@… 12 years ago.
Screenshot in VS 2010

Download all attachments as: .zip

Change History (2)

by Harald.Rieder@…, 12 years ago

Attachment: ptree_error.gif added

Screenshot in VS 2010

comment:1 by Sebastian Redl, 12 years ago

Resolution: fixed
Status: newclosed

Ought to be fixed on trunk and release, unless _MSC_FULL_VER did a big jump in the final release version.

Note: See TracTickets for help on using tickets.