fork download
  1. struct B {};
  2.  
  3. template <int N = 0>
  4. struct A
  5. {
  6. A(B const &) {}
  7. };
  8.  
  9. int main()
  10. {
  11. B temp;
  12.  
  13. A<> a1(temp);
  14. A<5> a2(temp);
  15. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty