Modify

Opened 6 years ago

Last modified 6 years ago

#6828 new Patches

functional/forward broken with decltype-based boost::result_of

Reported by: Eric Niebler Owned by: t_schwinger
Milestone: Boost 1.50.0 Component: functional/forward
Version: Boost Development Trunk Severity: Problem
Keywords: c++11 decltype result_of Cc:

Description

The clang c++11 test runner is showing failures with decltype-based result_of that do not happen with TR1-style result_of. See the results here (clang-cxx11 test runner):

http://www.boost.org/development/tests/trunk/developer/functional-forward.html

In particular:

In file included from ../libs/functional/forward/test/forward_adapter.cpp:16:
In file included from ../boost/functional/forward_adapter.hpp:21:
In file included from ../boost/utility/result_of.hpp:113:
In file included from ../boost/preprocessor/iteration/detail/iter/forward1.hpp:47:
../boost/utility/detail/result_of_iterate.hpp:66:5: error: no matching function for call to object of type 'const test_func<boost::blank>'
    boost::declval<F>()(
    ^~~~~~~~~~~~~~~~~~~
../boost/utility/detail/result_of_iterate.hpp:47:7: note: in instantiation of template class 'boost::detail::cpp0x_result_of_impl<const test_func<boost::blank> ()>' requested here
    : mpl::if_<
      ^
../boost/functional/forward_adapter.hpp:150:36: note: in instantiation of template class 'boost::result_of<const test_func<boost::blank> ()>' requested here
            inline typename boost::result_of< FC() >::type
                                   ^

Attachments (1)

forward_adaptor.patch (10.6 KB) - added by Eric Niebler 6 years ago.
the following patch fixes the problem

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Eric Niebler

Attachment: forward_adaptor.patch added

the following patch fixes the problem

comment:1 Changed 6 years ago by Michel Morin

Type: BugsPatches

Patch is attached by Eric Niebler.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain t_schwinger.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.