Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-06-11 11:58:22


Support Requests item #1504379, was opened at 2006-06-11 08:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1504379&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compiling Shmem

Initial Comment:
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&, T&)
[with T = boost::shmem::detail::flat_tree<int, int,
boost::shmem::detail::identity<int>, std::less<int>,
std::allocator<int> >::value_compare]â:
../../../../boost/shmem/containers/flat_tree.hpp:228:
 instantiated from âvoid
boost::shmem::detail::flat_tree<Key, Value,
KeyOfValue, Compare, Alloc>::swap
(boost::shmem::detail::flat_tree<Key, Value,
KeyOfValue, Compare, Alloc>&) [with Key = int, Value =
int, KeyOfValue = boost::shmem::detail::identity<int>,
Compare = std::less<int>, Alloc = std::allocator<int>]â
../../../../boost/shmem/containers/flat_set.hpp:164:
instantiated from âvoid boost::shmem::flat_set<T,
Pred, Alloc>::swap(boost::shmem::flat_set<T, Pred,
Alloc>&) [with T = int, Pred = std::less<int>, Alloc =
std::allocator<int>]â
../../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<int, int,
boost::shmem::detail::identity<int>, std::less<int>,
std::allocator<int> >::value_compare&,
boost::shmem::detail::flat_tree<int, int,
boost::shmem::detail::identity<int>, std::less<int>,
std::allocator<int> >::value_compare&)â 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&,
_Tp&) [with _Tp = boost::shmem::detail::flat_tree<int,
int, boost::shmem::detail::identity<int>,
std::less<int>, std::allocator<int> >::value_compare]
../../../../boost/shmem/detail/utilities.hpp:42:
note: void boost::shmem::detail::swap
(T&, T&) [with T =
boost::shmem::detail::flat_tree<int, int,
boost::shmem::detail::identity<int>, std::less<int>,
std::allocator<int> >::value_compare]
../../../../boost/shmem/detail/utilities.hpp: In
function âvoid boost::shmem::detail::swap(T&, T&)
[with T = boost::shmem::detail::flat_tree<int,
std::pair<int, int>,
boost::shmem::detail::select1st<std::pair<int, int> >,
std::less<int>, std::allocator<std::pair<int, int> >
>::value_compare]â:
../../../../boost/shmem/containers/flat_tree.hpp:228:
 instantiated from âvoid
boost::shmem::detail::flat_tree<Key, Value,
KeyOfValue, Compare, Alloc>::swap
(boost::shmem::detail::flat_tree<Key, Value,
KeyOfValue, Compare, Alloc>&) [with Key = int, Value =
std::pair<int, int>, KeyOfValue =
boost::shmem::detail::select1st<std::pair<int, int> >,
Compare = std::less<int>, Alloc =
std::allocator<std::pair<int, int> >]â
../../../../boost/shmem/containers/flat_map.hpp:180:
instantiated from âvoid boost::shmem::flat_map<Key, T,
Pred, Alloc>::swap(boost::shmem::flat_map<Key, T,
Pred, Alloc>&) [with Key = int, T = int, Pred =
std::less<int>, Alloc = std::allocator<std::pair<int,
int> >]â
../../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<int, std::pair<int,
int>, boost::shmem::detail::select1st<std::pair<int,
int> >, std::less<int>, std::allocator<std::pair<int,
int> > >::value_compare&,
boost::shmem::detail::flat_tree<int, std::pair<int,
int>, boost::shmem::detail::select1st<std::pair<int,
int> >, std::less<int>, std::allocator<std::pair<int,
int> > >::value_compare&)â 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&,
_Tp&) [with _Tp = boost::shmem::detail::flat_tree<int,
std::pair<int, int>,
boost::shmem::detail::select1st<std::pair<int, int> >,
std::less<int>, std::allocator<std::pair<int, int> >
>::value_compare]
../../../../boost/shmem/detail/utilities.hpp:42:
note: void boost::shmem::detail::swap
(T&, T&) [with T =
boost::shmem::detail::flat_tree<int, std::pair<int,
int>, boost::shmem::detail::select1st<std::pair<int,
int> >, std::less<int>, std::allocator<std::pair<int,
int> > >::value_compare]
make: *** [../../bin/linux/test_flat_tree_test.out]
Error 1

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1504379&group_id=7586

_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk