Boost logo

Boost :

Subject: [boost] [thread] Boost.Thread defines boost::move which conflicts with Boost.Move
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2011-12-31 16:58:36

VC10, SVN trunk:

#include <boost/move/move.hpp>
#include <boost/thread.hpp>

int main()
    return 0;

Results in:

.../boost/thread/detail/move.hpp(28) : error C2995:
'remove_reference<T>::type &&boost::move(T &&)' : function template has
already been defined .../boost/move/move.hpp(466) : see declaration of

IMHO, Boost.Thread needs to be changed to rely on Boost.Move for move
semantics instead of defining its own implementation for boost::move().

Regards Hartmut

Boost list run by bdawes at, gregod at, cpdaniel at, john at