#include <iostream>using namespace std; template<typename>struct de_cay; // undefined template<size_t N, typename T>struct de_cay<T[N]> { static const size_t size = N; using type = T;}; template<typename T>struct TypeDefinition; int main(){ TypeDefinition<de_cay<int[5][2]>::type> td;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:18:42: error: aggregate 'TypeDefinition<int [2]> td' has incomplete type and cannot be defined TypeDefinition<de_cay<int[5][2]>::type> td; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!