fork(13) download
  1. template<class V1, class V2>
  2. auto foo(V1 v1, V2 v2) -> decltype(v1+v2);
  3.  
  4. template<class V1>
  5. int foo(V1 v1, bool v2);
  6.  
  7. int main(void)
  8. {
  9. sizeof(foo("C++11 is great?", true));
  10. return (0);
  11. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty