Boost C++ Libraries: Ticket #4092: VC2010 compile error https://svn.boost.org/trac10/ticket/4092 <p> Compiling with the RTM Visual Studio 2010 Professional I get the following compile error. </p> <p> Compile command: ./bjam --build-dir="D:/boostbuild" toolset=msvc --build-type=complete stage </p> <pre class="wiki">compile-c-c++ D:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static\graphml.obj graphml.cpp .\boost/property_tree/detail/ptree_implementation.hpp(30) : error C2440: 'specialization' : cannot convert from 'const std::string std::_Pair_base&lt;_Ty1,_Ty2&gt;::* ' to 'const std::basic_string&lt;_Elem,_Traits,_Ax&gt; std::pair&lt;_Ty1,_Ty2&gt;::* ' with [ _Ty1=const std::string, _Ty2=boost::property_tree::basic_ptree&lt;std::string,std::string&gt; ] and [ _Elem=char, _Traits=std::char_traits&lt;char&gt;, _Ax=std::allocator&lt;char&gt;, _Ty1=const std::string, _Ty2=boost::property_tree::basic_ptree&lt;std::string,std::string&gt; ] Standard conversion from pointer-to-member of base to pointer-to-member of derived is not applied for template arguments .\boost/property_tree/detail/ptree_implementation.hpp(78) : see reference to class template instantiation 'boost::property_tree::basic_ptree&lt;Key,Data&gt;::subs' being compiled with [ Key=std::string, Data=std::string ] .\boost/foreach.hpp(265) : see reference to class template instantiation 'boost::property_tree::basic_ptree&lt;Key,Data&gt;::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&lt;T&gt;' being compiled with [ T=boost::property_tree::basic_ptree&lt;std::string,std::string&gt;::const_iterator ] call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 &gt;nul cl /Zm800 -nologo @"D:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static\graphml.obj.rsp" ...failed compile-c-c++ D:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static\graphml.obj... ...skipped &lt;pD:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static&gt;libboost_graph-vc100-s-1_42.lib for lack of &lt;pD:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static&gt;graphml.obj... ...skipped &lt;pstage\lib&gt;libboost_graph-vc100-s-1_42.lib for lack of &lt;pD:\boostbuild\boost\bin.v2\libs\graph\build\msvc-10.0\release\link-static\runtime-link-static&gt;libboost_graph-vc100-s-1_42.lib... ...skipped &lt;pstage\lib&gt;libboost_graph-vc100-s.lib for lack of &lt;pstage\lib&gt;libboost_graph-vc100-s-1_42.lib... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4092 Trac 1.4.3 Richard Webb <richard.webb@…> Tue, 13 Apr 2010 10:47:35 GMT owner, component changed https://svn.boost.org/trac10/ticket/4092#comment:1 https://svn.boost.org/trac10/ticket/4092#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Andrew Sutton</span> to <span class="trac-author">Sebastian Redl</span> </li> <li><strong>component</strong> <span class="trac-field-old">graph</span> → <span class="trac-field-new">property_tree</span> </li> </ul> <p> This is bug <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3594" title="#3594: Bugs: [property_tree] regression test failures on VC10 Beta 2 (closed: fixed)">#3594</a>, which is fixed in Trunk but references the full VC version number rather than just the major version, so it might need updating. Probably better to just check for '10' rather than the full version at this point? </p> <p> hope no one minds me changing the component to property_tree. </p> Ticket Richard Webb <richard.webb@…> Wed, 14 Apr 2010 14:57:11 GMT <link>https://svn.boost.org/trac10/ticket/4092#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4092#comment:2</guid> <description> <p> For reference, _MSC_FULL_VER is 160030319 in the release version of VC10. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Tue, 27 Apr 2010 09:04:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4092#comment:3 https://svn.boost.org/trac10/ticket/4092#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61606" title="MSVC 10 final did not fix the std::pair bug as I had hoped, so update ...">[61606]</a>) MSVC 10 final did not fix the std::pair bug as I had hoped, so update the workaround. </p> <p> Fixes bug 4092 </p> Ticket Jeremiah Willcock Sat, 03 Jul 2010 20:59:47 GMT <link>https://svn.boost.org/trac10/ticket/4092#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4092#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63563" title="Merged r59734 and r61606 from trunk; fixes #3594 and #4092">[63563]</a>) Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/59734" title="Work around a bug in the VC++10 standard library. Hopefully fixes bug ...">r59734</a> and <a class="changeset" href="https://svn.boost.org/trac10/changeset/61606" title="MSVC 10 final did not fix the std::pair bug as I had hoped, so update ...">r61606</a> from trunk; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3594" title="#3594: Bugs: [property_tree] regression test failures on VC10 Beta 2 (closed: fixed)">#3594</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4092" title="#4092: Bugs: VC2010 compile error (closed: fixed)">#4092</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Edward</dc:creator> <pubDate>Tue, 23 Nov 2010 09:23:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4092#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4092#comment:5</guid> <description> <p> I am trying to compile boost 1.45 using the recently released Intel Composer XE 2011 for Windows. I am running into the same error. I have changed the check for BOOST_MSVC to include BOOST_INTEL_WIN (line 19 of boost/property_tree/detail/ptree_implementation.hpp) and can compile successfully. Not sure if this is the proper fix, so I hope the author/maintainer can look into this and fix this. </p> </description> <category>Ticket</category> </item> <item> <author>Edward Rankin <erankin@…></author> <pubDate>Mon, 14 Mar 2011 09:48:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4092#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4092#comment:6</guid> <description> <p> This is still present for Intel Compilers in 1.46.1. Should I open a new ticket? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 14 Mar 2011 13:45:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4092#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4092#comment:7</guid> <description> <p> Yes, you should open a new ticket. </p> </description> <category>Ticket</category> </item> </channel> </rss>