fork(2) download
  1. struct A
  2. {
  3. static constexpr int foo() { return 1; }
  4. };
  5.  
  6. template <class T>
  7. void bar(T&& t)
  8. {
  9. t.foo(); // <-- taaa-daaa focus-pokus
  10. }
  11.  
  12. int main()
  13. {
  14. const A a;
  15. bar(a);
  16. return 0;
  17. }
  18.  
  19.  
Success #stdin #stdout 0s 4268KB
stdin
Standard input is empty
stdout
Standard output is empty