fork download
  1. struct TSomeClass {
  2. TSomeClass(){}
  3. TSomeClass(const TSomeClass&) noexcept {}
  4. };
  5.  
  6. struct TCopier
  7. {
  8. template <class T>
  9. TCopier(const T& t, int [noexcept(T(t))? 1 : -1] = 0) noexcept
  10. {
  11. T t2(t);
  12. }
  13. };
  14.  
  15. int main()
  16. {
  17. TSomeClass s;
  18. TCopier c(s);
  19. }
  20.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty