fork download
  1. template <template <typename...> class Template, int Exp, typename T>
  2. struct pow {
  3. typedef Template<typename pow<Template, Exp-1, T>::type> type;
  4. };
  5.  
  6. template <template <typename...> class Template, typename T>
  7. struct pow<Template, 0, T> {
  8. typedef T type;
  9. };
  10.  
  11. template <typename>
  12. struct shared_ptr {};
  13.  
  14. template <typename> struct show;
  15.  
  16. int main() {
  17. show<typename pow<shared_ptr, 10, int>::type> _;
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:17:51: error: aggregate 'show<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<shared_ptr<int> > > > > > > > > > > _' has incomplete type and cannot be defined
stdout
Standard output is empty