fork download
  1. constexpr void * foo(int n) { return n == 0 ? nullptr : operator new(n); }
  2.  
  3. template <void * P> struct X {};
  4.  
  5. X<foo(0)> x;
  6.  
  7. int main() {}
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty