fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. void f(T &&t){}
  6.  
  7. int main() {
  8. int i = 0;
  9. const int ci = 1;
  10. f(i);
  11. f(ci);
  12. f(0);
  13. f((const int &&)1);
  14. return 0;
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty