Re: [Boost-bugs] [Boost C++ Libraries] #9953: lazy_enable_if is not sfinae friendly

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9953: lazy_enable_if is not sfinae friendly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-08 20:37:35


#9953: lazy_enable_if is not sfinae friendly
-------------------------------+-------------------------
  Reporter: hui.li@… | Owner: Peter Dimov
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: core
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------
Changes (by Andrey Semashev):

 * owner: No-Maintainer => Peter Dimov
 * component: utility => core

Comment:

 This might be useful. Deriving from `T` won't work if it is `final`, but
 in C++11 we could reformulate `lazy_enable_if_c` like this:

 {{{
 template< bool Cond, typename T >
 using lazy_enable_if_c = typename enable_if_c< Cond, T >::type::type;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/9953#comment:2>
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-07-08 20:40:27 UTC