Boost C++ Libraries: Ticket #9188: named_slot_map.cpp fails to build in Solaris Studio 12.3 https://svn.boost.org/trac10/ticket/9188 <p> I'm getting an "Overloading ambiguity error" when building libs/signals/src/named_slot_map.cpp on or around lines 105 &amp; 128 on the calls to <code>groups.erase</code>. </p> <p> This may be related to an issue <a class="ext-link" href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-unresolved.html"><span class="icon">​</span>talked about here</a>, but that issue seems to indicate the problem would only exist in C++11. </p> <p> The error goes away with the following minor edits: </p> <pre class="wiki">-105: groups.erase((const_group_iterator) group); +105: groups.erase(*(const_group_iterator) group); -128: if (empty(g)) groups.erase((const_group_iterator) g++); +128: if (empty(g)) groups.erase(*(const_group_iterator) g++); </pre><p> I'm doing this work on an airgapped network, and the error is rather verbose ... but I'll give a shorted version of the error: </p> <pre class="wiki">"libs/signals/src/named_slot_map.cpp", line 105: Overloading ambiguity between "std::map&lt;A&gt;::erase( __rw::__rw_tree_iter&lt;B&gt; )" and "std::map&lt;A&gt;::erase(const boost::signals::detail::stored_group&amp;)". "libs/signals/src/named_slot_map.cpp", line 128: Overloading ambiguity between "std::map&lt;A&gt;::erase( __rw::__rw_tree_iter&lt;B&gt; )" and "std::map&lt;A&gt;::erase(const boost::signals::detail::stored_group&amp;)". </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9188 Trac 1.4.3 viboes Sat, 05 Oct 2013 10:35:44 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9188#comment:1 https://svn.boost.org/trac10/ticket/9188#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">signals</span> </li> </ul> Ticket Brian Vandenberg <phantall+boost@…> Wed, 09 Oct 2013 17:15:57 GMT <link>https://svn.boost.org/trac10/ticket/9188#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9188#comment:2</guid> <description> <p> I forgot to mention I was building this with apache's STL implementation; to do that you'd have to have it built/installed, and change anything using <code>stlport4</code> to use <code>stdcxx4</code> -- eg: </p> <pre class="wiki">gsed -i -e 's/stlport4/stdcxx4/g' tools/build/v2/tools/sun.jam boost/tr1/detail/config_all.hpp </pre><p> This may be an issue in stlport4 as well, but I had no reason to test that. </p> </description> <category>Ticket</category> </item> </channel> </rss>