Opened 13 years ago

Closed 12 years ago

#3203 closed Bugs (wontfix)

boost::result_of not honoring F::result

Reported by: Christopher Schmidt Owned by: danmarsden
Milestone: Boost 1.40.0 Component: fusion
Version: Boost Development Trunk Severity: Problem
Keywords: c++0x Cc:

Description

boost::result_of used with compilers with decltype support seems to be inconsistent with the documentation. The decltype implementation does not honor the result metafunction at all, which yields to problems when using boost::result_of on pure metafunction classes, such as being done in Boost.Fusion (e.g. see the trunk issues on the zip_view testcases on gcc-4.4.0_gnu++0x).

Change History (5)

comment:1 by Steven Watanabe, 13 years ago

The behavior of boost::result_of is correct according to the standard. Fusion is using it incorrectly.

comment:2 by Joel de Guzman, 13 years ago

Owner: changed from No-Maintainer to Joel de Guzman

comment:3 by Joel de Guzman, 13 years ago

Owner: changed from Joel de Guzman to danmarsden

comment:4 by Daniel James, 13 years ago

Component: utilityfusion

comment:5 by anonymous, 12 years ago

Resolution: wontfix
Status: newclosed

boost::result_of does not use decltype any more...

Note: See TracTickets for help on using tickets.