template<template<class> class> struct Foo { }; template<class> struct Outer { template<class> struct Inner { }; }; template<class T> struct Test { typedef Foo<typename Outer<T>::Inner> Result; };
Standard input is empty
prog.cpp:18: error: type/value mismatch at argument 1 in template parameter list for ‘template<template<class> class<template-parameter-1-1> > struct Foo’ prog.cpp:18: error: expected a class template, got ‘typename Outer<T>::Inner’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!