Boost logo

Boost :

Subject: Re: [boost] New, powerful way to use enable_if in C++0x
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2011-04-13 13:35:41


On Wed, Apr 13, 2011 at 1:17 PM, Thorsten Ottosen <
thorsten.ottosen_at_[hidden]> wrote:

> template< class T, BOOST_ENABLE_WHEN( boost::is_xxx<T> ) >
>

This is the best so far, I think, and avoids the mistakes people keep
making. Also, no need for calling it "enable when" anymore, you might as
well just call it BOOST_ENABLE_IF. We also no longer need new templates.

-- 
-Matt Calabrese

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk