|
Boost Users : |
Subject: [Boost-users] Boost.Variant on Boost 1.57
From: gast128 (gast128_at_[hidden])
Date: 2014-11-04 14:04:32
hello all,
I get a compilation error with Boost.Operators and boost.Variant on vs2010:
struct KFoo : boost::totally_ordered<KFoo>
{
};
bool operator<(const KFoo&, const KFoo&);
bool operator==(const KFoo&, const KFoo&);
void Foo()
{
boost::variant<KFoo> var;
var.swap(var);
}
1>C:\work sdk\boost_1_57_0\boost/variant/detail/move.hpp(60): error C2668:
'boost::swap' : ambiguous call to overloaded function
1> C:\work sdk\boost_1_57_0\boost/core/swap.hpp(54): could be 'void
boost::swap<T,T>(T1 &,T2 &)' [found using argument-dependent lookup]
1> with
1> [
1> T=T0,
1> T1=T0,
1> T2=T0
1> ]
1> C:\work sdk\boost_1_57_0\boost/variant/detail/move.hpp(44): or
'void boost::detail::variant::move_swap_fallback::swap<T,T>(T1 &,T2 &)'
anyone?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net