Boost logo

Boost :

Subject: Re: [boost] [static_if] Is there interest in a `static if` emulation library?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-09-08 06:51:02


On 02/09/2014 05:45, pfultz2 wrote:

> However, I don't know a way to disable member variables and types using
> enable_if. Perhaps there is a way, I'm not aware of yet.

To use SFINAE, you need to make them templates.

Unfortunately, both type and variable templates require an explicit
parameter lists, unlike functions where they can be deduced.

I'm not even sure variable templates work in this context.


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