fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo
  5. {
  6. Foo()=default;
  7. //Foo(){}
  8. template<class ... T>
  9. Foo(T ...)
  10. {
  11. cout<<"why not enter?"<<endl;
  12. }
  13. };
  14.  
  15. int main()
  16. {
  17. Foo f{1,2};
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
why not enter?