fork download
  1. template<bool> struct Range;
  2.  
  3. template<int value, typename = Range<true> > struct Unique;
  4. template<int value> struct Unique<value, Range<(value > 1)> > { typedef char type[1]; };
  5. Unique<3>::type o1;
  6.  
  7. template<int value> struct Unique<value, Range<(value > 2)> > { typedef char type[2]; };
  8. Unique<3>::type o2;
  9.  
  10. int main ()
  11. {
  12. }
  13.  
Success #stdin #stdout 0.02s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty