3 // We used to reject this code as the extension
4 // for default arguments being accepted as less the
5 // needed template arguments.
8 template<typename> struct match { };
10 template<template<typename> class t,typename T>
11 struct match<t<T> > { typedef int type; };
13 template<template<typename,typename> class t,typename T0,typename T1>
14 struct match<t<T0,T1> > { typedef int type; };
16 template<typename,typename =void> struct other { };
18 typedef match<other<void,void> >::type type;