8 Sep
2014
8 Sep
'14
10:51 a.m.
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.