Boost C++ Libraries: Ticket #648: Compiling Shmem https://svn.boost.org/trac10/ticket/648 <pre class="wiki">Hi, I'm trying to use Shmem for a project but it does not compile. Has anybody got these errors or know how to solve them? Thanks in advance. P.D.: Linux FC5 out of the box config. You can reach me at bblasi at jblasi dot c o m by email. cc ../../test/flat_tree_test.cpp -Wall -g -pthread - lstdc++ -lrt -lboost_thread -I../../../.. -L/usr/lib - o ../../bin/linux/test_flat_tree_test.out ../../../../boost/shmem/detail/utilities.hpp: In function âvoid boost::shmem::detail::swap(T&amp;, T&amp;) [with T = boost::shmem::detail::flat_tree&lt;int, int, boost::shmem::detail::identity&lt;int&gt;, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt;::value_compare]â: ../../../../boost/shmem/containers/flat_tree.hpp:228: instantiated from âvoid boost::shmem::detail::flat_tree&lt;Key, Value, KeyOfValue, Compare, Alloc&gt;::swap (boost::shmem::detail::flat_tree&lt;Key, Value, KeyOfValue, Compare, Alloc&gt;&amp;) [with Key = int, Value = int, KeyOfValue = boost::shmem::detail::identity&lt;int&gt;, Compare = std::less&lt;int&gt;, Alloc = std::allocator&lt;int&gt;]â ../../../../boost/shmem/containers/flat_set.hpp:164: instantiated from âvoid boost::shmem::flat_set&lt;T, Pred, Alloc&gt;::swap(boost::shmem::flat_set&lt;T, Pred, Alloc&gt;&amp;) [with T = int, Pred = std::less&lt;int&gt;, Alloc = std::allocator&lt;int&gt;]â ../../test/flat_tree_test.cpp:34: instantiated from here ../../../../boost/shmem/detail/utilities.hpp:45: error: call of overloaded âswap (boost::shmem::detail::flat_tree&lt;int, int, boost::shmem::detail::identity&lt;int&gt;, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt;::value_compare&amp;, boost::shmem::detail::flat_tree&lt;int, int, boost::shmem::detail::identity&lt;int&gt;, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt;::value_compare&amp;)â is ambiguous /usr/lib/gcc/i386-redhat- linux/4.1.0/../../../../include/c++/4.1.0/bits/stl_algo base.h:92: note: candidates are: void std::swap(_Tp&amp;, _Tp&amp;) [with _Tp = boost::shmem::detail::flat_tree&lt;int, int, boost::shmem::detail::identity&lt;int&gt;, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt;::value_compare] ../../../../boost/shmem/detail/utilities.hpp:42: note: void boost::shmem::detail::swap (T&amp;, T&amp;) [with T = boost::shmem::detail::flat_tree&lt;int, int, boost::shmem::detail::identity&lt;int&gt;, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt;::value_compare] ../../../../boost/shmem/detail/utilities.hpp: In function âvoid boost::shmem::detail::swap(T&amp;, T&amp;) [with T = boost::shmem::detail::flat_tree&lt;int, std::pair&lt;int, int&gt;, boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;int, int&gt; &gt; &gt;::value_compare]â: ../../../../boost/shmem/containers/flat_tree.hpp:228: instantiated from âvoid boost::shmem::detail::flat_tree&lt;Key, Value, KeyOfValue, Compare, Alloc&gt;::swap (boost::shmem::detail::flat_tree&lt;Key, Value, KeyOfValue, Compare, Alloc&gt;&amp;) [with Key = int, Value = std::pair&lt;int, int&gt;, KeyOfValue = boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, Compare = std::less&lt;int&gt;, Alloc = std::allocator&lt;std::pair&lt;int, int&gt; &gt;]â ../../../../boost/shmem/containers/flat_map.hpp:180: instantiated from âvoid boost::shmem::flat_map&lt;Key, T, Pred, Alloc&gt;::swap(boost::shmem::flat_map&lt;Key, T, Pred, Alloc&gt;&amp;) [with Key = int, T = int, Pred = std::less&lt;int&gt;, Alloc = std::allocator&lt;std::pair&lt;int, int&gt; &gt;]â ../../test/flat_tree_test.cpp:36: instantiated from here ../../../../boost/shmem/detail/utilities.hpp:45: error: call of overloaded âswap (boost::shmem::detail::flat_tree&lt;int, std::pair&lt;int, int&gt;, boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;int, int&gt; &gt; &gt;::value_compare&amp;, boost::shmem::detail::flat_tree&lt;int, std::pair&lt;int, int&gt;, boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;int, int&gt; &gt; &gt;::value_compare&amp;)â is ambiguous /usr/lib/gcc/i386-redhat- linux/4.1.0/../../../../include/c++/4.1.0/bits/stl_algo base.h:92: note: candidates are: void std::swap(_Tp&amp;, _Tp&amp;) [with _Tp = boost::shmem::detail::flat_tree&lt;int, std::pair&lt;int, int&gt;, boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;int, int&gt; &gt; &gt;::value_compare] ../../../../boost/shmem/detail/utilities.hpp:42: note: void boost::shmem::detail::swap (T&amp;, T&amp;) [with T = boost::shmem::detail::flat_tree&lt;int, std::pair&lt;int, int&gt;, boost::shmem::detail::select1st&lt;std::pair&lt;int, int&gt; &gt;, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;int, int&gt; &gt; &gt;::value_compare] make: *** [../../bin/linux/test_flat_tree_test.out] Error 1 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/648 Trac 1.4.3 Ion Gaztañaga Thu, 11 Jan 2007 17:13:07 GMT status changed https://svn.boost.org/trac10/ticket/648#comment:1 https://svn.boost.org/trac10/ticket/648#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=1416985 Originator: NO Error in ADL use. Fixed in cvs. </pre> Ticket