1 2 3 4 5 6 7 8 9 10 11
template <bool> struct A {}; template <bool> struct B { void foo() { const int i=0; typedef A< i<=1 > C; typedef A< i<=2 > C; } };