0

Consider the following code:

template<typename T>
class C{
    //...
}

template<typename U>
void foo(U arg){
    //...
}

Inside of foo(), how can I test whether U is the same type as C<T> for any T?

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
Museful
  • 6,711
  • 5
  • 42
  • 68

0 Answers0