fork(7) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A {
  5. };
  6.  
  7. template<typename T> void E(T&& a) {}
  8.  
  9. template<typename T> void F(T&& a) { E(std::forward<T>(a)); }
  10.  
  11. int main() {
  12. F(A());
  13. A obj;
  14. F(obj);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty