public
anonymous / gist:3847212
Created

  • Download Gist
gistfile1.cpp
C++
1 2 3 4 5 6 7 8 9 10 11 12 13
template <typename T, typename U>
struct A;
 
template <typename T>
struct A<T*, T*> { };
 
template <typename T>
struct A<T const*, T*> { };
 
A<int const* , int const* > okay;
A<int const(*)[1], int const(*)[1]> fail;
 
int main() { }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.