Lets have a template
template <class T>
class X
{}
Lets say I use 2 variants of that template
using Xint = X<int>;
using Xbool = X<bool>;
In some other code inside a template, there is an if:
if constexpr (std::is_same_v<Type, Xint> || std::is_same_v<Type, Xbool>)
<process X>
else
<process generic>
This works, but the obvious goal would be to not have to name all of the Variants of X in the if, but to write it generically, I was hoping for something like:
if constexpr (std::is_same_v<Type, X<classT>>)
<process X>
else
<process generic>
Which compiles for me, but just doesn't work, it always ends up in the else branch.