python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Template specialization and selection in variadic template class
I've a variadic templated class with some template specializations. I would like, for some specialization, to enable them conditionally (with std::enable_if, so I added a additional unused template pa...
Vincent
Votes: 0
Answers: 1
SFINAE - recursive template
I'm trying to do this:
struct A
{
typedef void NoHalf;
};
struct B : A
{
typedef A Half;
};
struct C : B
{
typedef B Half;
};
template<class T, typename = T::NoHalf> void TEST() { }...
mrzacek mrzacek
Votes: 0
Answers: 1
Why is this partial specialization not more specialized?
Why is the second version of the class not more specialized than the first? Can't the first version be further specialized with more classes than the second?
Is there an obvious way to make the second...
user41010
Votes: 0
Answers: 0
Failure to select correct operator== with MSVC but not gcc/clang for templated class
The following example compiles fine using gcc and clang, but fails to compile in MSVC. I would like to know if I have unwittingly stumbled into non-standard territory? If not, which compiler is correc...
Sedenion
Votes: 0
Answers: 1