I am trying to get a simple example to work to understand how to use std::enable_if. After I read this answer, I thought it shouldn\'t be too hard to come up wi
std::enable_if
Here is my minimalist example, using a macro. Use double brackets enable_if((...)) when using more complex expressions.
enable_if((...))
template = 0> using helper_enable_if = int; #define enable_if(value) typename = helper_enable_if struct Test { template void run(); }