Re: [Boost-bugs] [Boost C++ Libraries] #7343: Extend result_of to work with SFINAE

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7343: Extend result_of to work with SFINAE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-23 00:50:59


#7343: Extend result_of to work with SFINAE
-------------------------------+--------------------------------------------
  Reporter: djwalker | Owner: djwalker
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords: result_of, decltype, SFINAE
-------------------------------+--------------------------------------------

Comment (by michel):

 First, I did the following
 1. Remove `BOOST_RESULT_OF_USE_DECLTYPE` guard for `sfinae_test` in
 `result_of_test.cpp`.
 2. Make gcc 4.4 in a C++11 mode (with `BOOST_RESULT_OF_USE_DECLTYPE`)
 follow the `BOOST_NO_SFINAE_EXPR` branch.

 Without applying 2, the test fails to compile on gcc 4.4 (in a C++11 mode
 `BOOST_RESULT_OF_USE_DECLTYPE`).


 Here are the test results.

 * gcc 4.3 - 4.8 (in a C++03 mode): OK
 * gcc 4.3 - 4.8 (in a C++11 mode): OK
 * gcc 4.3 - 4.4 (in a C++11 mode + BOOST_RESULT_OF_USE_DECLTYPE): OK but
 with two warnings:
 {{{
 boost/utility/detail/result_of_iterate.hpp:100:
 warning: object of type 'volatile int&' will not be accessed
 in left-hand operand of comma
 }}}
 {{{
 boost/utility/detail/result_of_iterate.hpp:100:
 warning: object of type 'const volatile int&' will not be accessed
 in left-hand operand of comma
 }}}
 * gcc 4.5 - 4.8 (in a C++11 mode + BOOST_RESULT_OF_USE_DECLTYPE): OK

 * clang 2.8 - 3.2 (in a C++03 mode): OK
 * clang 2.8 - 3.2 (in a C++11 mode): OK
 * clang 2.8 - 3.2 (in a C++11 mode + BOOST_RESULT_OF_USE_DECLTYPE): OK

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7343#comment:17>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC