fork(1) download
  1. template <int N> class Foo
  2. {
  3. public:
  4. bool bar()
  5. {
  6. return 5 / N == 1;
  7. }
  8. };
  9.  
  10. template <>
  11. bool Foo<0>::bar() { return true; }
  12.  
  13.  
  14. int main()
  15. {
  16. Foo<0> f;
  17.  
  18. f.bar();
  19. }
  20.  
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty