Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9953: lazy_enable_if is not sfinae friendly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-25 10:57:13
#9953: lazy_enable_if is not sfinae friendly
-------------------------------+---------------------------
Reporter: hui.li@⦠| Owner: no-maintainer
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: utility
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by anonymous):
I should mention what error i get when compiling the test code.
On clang++-3.4 with -std=c++11, I got:
{{{
clang++-mp-3.4 -std=c++11 -I /opt/local/include/ main.cpp
In file included from main.cpp:1:
In file included from /opt/local/include/boost/type_traits.hpp:65:
In file included from
/opt/local/include/boost/type_traits/is_nothrow_move_assignable.hpp:22:
/opt/local/include/boost/utility/enable_if.hpp:40:25: error: no type named
'type' in 'boost::result_of<A (int)>'
typedef typename T::type type;
~~~~~~~~~~~~^~~~
main.cpp:12:1: note: in instantiation of template class
'boost::lazy_enable_if_c<true, boost::result_of<A (int)> >'
requested here
typename boost::lazy_enable_if_c<
^
main.cpp:16:1: note: while substituting explicitly-specified template
arguments into function template 'test'
test(int){}
^
1 error generated.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9953#comment:1> 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:16 UTC