Opened 11 years ago

Closed 10 years ago

#6345 closed Bugs (fixed)

std::forward not available when compiling with clang 3.0 c++0x

Reported by: viboes Owned by: Gennadiy Rozental
Milestone: Boost 1.49.0 Component: test
Version: Boost 1.48.0 Severity: Showstopper
Keywords: Cc:

Description

Recent modification on Boost.Test make it unusable with clang 3.0 c++0x due to std::forward missing or not found.

clang-darwin.compile.c++ ../../../bin.v2/libs/thread/test/test_thread.test/clang-darwin-3.0x/debug/threading-multi/test_thread.o
In file included from test_thread.cpp:16:
In file included from ../../../boost/test/unit_test.hpp:19:
In file included from ../../../boost/test/test_tools.hpp:328:
In file included from ../../../boost/test/tools/impl.hpp:25:
../../../boost/test/tools/assertion.hpp:278:21: error: no member named 'forward' in namespace 'std'
    : m_value( std::forward<T>(val) )
               ~~~~~^
../../../boost/test/tools/assertion.hpp:278:29: error: 'T' does not refer to a value
    : m_value( std::forward<T>(val) )
                            ^

This has as consequence that the authors developing mainly with this compiler and using Boost.Test to be unable to deliver new modifications.

Attachments (1)

boost_test.patch (386 bytes ) - added by timblechmann 10 years ago.

Download all attachments as: .zip

Change History (3)

by timblechmann, 10 years ago

Attachment: boost_test.patch added

comment:1 by timblechmann, 10 years ago

proposed patch hopefully fixes the use of boost.test with c++11 builds

comment:2 by Gennadiy Rozental, 10 years ago

Resolution: fixed
Status: newclosed

(In [81178]) added header for std::forward; Fixes #6345

Note: See TracTickets for help on using tickets.