fork download
  1. #include <iostream>
  2. #include <type_traits>
  3.  
  4.  
  5. template<bool B, class T = void>
  6. struct anable_if {};
  7.  
  8. template<class T>
  9. struct anable_if<true, T> { typedef T type; };
  10.  
  11. int main()
  12. {
  13. anable_if<0> a;
  14. std::enable_if<0> b;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4268KB
stdin
Standard input is empty
stdout
Standard output is empty