python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Partial specialization of typedef
I want to have a type which is either a typedef or a class. Thus, something like this
template< typename T > class A { };
template< typename T > using X< T, true > = T;
template< ...

tommsch
Votes: 0
Answers: 1
Template function specialization for specific template ( not type )
I have some templated class types like A,B,C as follows:
template < typename T >
class A{};
template < typename T >
class B{};
template < typename T >
class C{};
And now I want ...
Klaus
Votes: 0
Answers: 3
Can template partial specialization narrow the argument type in C++?
In the next program, struct template A<int> has a specialization A<char>:
template <int>
struct A { constexpr operator int() { return 1; } };
template <char c>
struct A<c&g...
Fedor
Votes: 0
Answers: 1
Is this partial class specialization buggy or is it a bug in clang or gcc?
template <class A>
struct Foo {
template <class Bar>
constexpr auto a_method();
};
template <class A>
template <class Bar>
constexpr auto Foo<A>::a_method() {
re...
vladon
Votes: 0
Answers: 1