1>------ Build started: Project: variant-test, Configuration: Release x64 ------ 1>Compiling... 1>variant-test.cpp 1>c:\Users\dh\products\avir\include\boost/variant/detail/move.hpp(155) : error C2668: 'boost::detail::variant::detail::move_swap::swap' : ambiguous call to overloaded function 1> c:\Users\dh\products\avir\include\boost/variant/detail/move.hpp(141): could be 'void boost::detail::variant::detail::move_swap::swap(T &,T &)' 1> with 1> [ 1> T=T2 1> ] 1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\utility(16): or 'void std::swap(_Ty &,_Ty &)' [found using argument-dependent lookup] 1> with 1> [ 1> T=T2, 1> _Ty=T2 1> ] 1> while trying to match the argument list '(T2 , T2 )' 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(684) : see reference to function template instantiation 'void boost::detail::variant::move_swap(T &,T &)' being compiled 1> with 1> [ 1> T=T2 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(806) : see reference to function template instantiation 'void boost::detail::variant::swap_with::operator ()(T &) const' being compiled 1> with 1> [ 1> Variant=boost::variant *>, 1> T=T2 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/detail/visitation_impl.hpp(126) : see reference to function template instantiation 'void boost::detail::variant::invoke_visitor::internal_visit(T &,int)' being compiled 1> with 1> [ 1> Visitor=boost::detail::variant::swap_with *>>, 1> T=T2 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/detail/visitation_impl.hpp(169) : see reference to function template instantiation 'void boost::detail::variant::visitation_impl_invoke_impl(int,Visitor &,VoidPtrCV,T *,boost::mpl::true_)' being compiled 1> with 1> [ 1> Visitor=boost::detail::variant::invoke_visitor *>>>, 1> VoidPtrCV=void *, 1> T=T2 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/detail/visitation_impl.hpp(252) : see reference to function template instantiation 'void boost::detail::variant::visitation_impl_invoke(int,Visitor &,VoidPtrCV,T *,NoBackupFlag,int)' being compiled 1> with 1> [ 1> Visitor=boost::detail::variant::invoke_visitor *>>>, 1> VoidPtrCV=void *, 1> NoBackupFlag=boost::variant *>::has_fallback_type_, 1> T=T2 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(1738) : see reference to function template instantiation 'void boost::detail::variant::visitation_impl::has_fallback_type_>(const int,const int,Visitor &,VoidPtrCV,boost::mpl::false_,NoBackupFlag,Which *,step0 *)' being compiled 1> with 1> [ 1> Visitor=boost::detail::variant::invoke_visitor *>>>, 1> VoidPtrCV=void *, 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector *, 1> NoBackupFlag=boost::variant *>::has_fallback_type_, 1> Which=first_which, 1> step0=first_step 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(1749) : see reference to function template instantiation 'void boost::variant::internal_apply_visitor_impl(int,int,Visitor &,VoidPtrCV)' being compiled 1> with 1> [ 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector *, 1> Visitor=boost::detail::variant::invoke_visitor *>>>, 1> VoidPtrCV=void * 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(1772) : see reference to function template instantiation 'void boost::variant::internal_apply_visitor>(boost::detail::variant::invoke_visitor &)' being compiled 1> with 1> [ 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector *, 1> Visitor=boost::detail::variant::swap_with *>> 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(1608) : see reference to function template instantiation 'void boost::variant::apply_visitor>(Visitor &)' being compiled 1> with 1> [ 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector *, 1> Variant=boost::variant *>, 1> Visitor=boost::detail::variant::swap_with *>> 1> ] 1> c:\Users\dh\products\avir\include\boost/variant/variant.hpp(1602) : while compiling class template member function 'void boost::variant::swap(boost::variant &)' 1> with 1> [ 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector * 1> ] 1> ..\variant-test.cpp(9) : see reference to class template instantiation 'boost::variant' being compiled 1> with 1> [ 1> T0_=boost::blank, 1> T1=int, 1> T2=std::vector * 1> ] 1>Build log was saved at "file://c:\Users\dh\variant-test\x64\Release\BuildLog.htm" 1>variant-test - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========