I'm trying to understand why this code does not compile:I get a compiler error: "no type named type".
I have many EnableIf traits that basically check whether the input type satisfies an interface. I was trying to create a generic Resolve trait that can be used to transform those into a boolean trait.
For performance reasons, I'm using a templated class with an enum instead of relay on inheritance (It is not an option).
Suppose we have some SFINAE member function:If we declared it as above, then how can we define them? Both of their function signatures would look like:
I need to write a templated function, that behaves differently depending on the class of its parameter: