Opened 11 years ago

Closed 11 years ago

#6341 closed Bugs (duplicate)

Boost.Thread defines boost::move which conflicts with Boost.Move

Reported by: Hartmut Kaiser Owned by: Anthony Williams
Milestone: Boost 1.49.0 Component: thread
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc: viboes

Description

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 'boost::move'

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

Change History (2)

comment:1 by Hartmut Kaiser, 11 years ago

Owner: changed from Andy Tompkins to Anthony Williams

Sorry, selected the wrong Anthony to be the owner of this ticket :-P

comment:2 by viboes, 11 years ago

Resolution: duplicate
Status: newclosed

duplicate #6141 Compilation error when boost.thread and boost.move are used together

Note: See TracTickets for help on using tickets.