fork(1) download
  1. #include <string>
  2. #if __cplusplus >= 201103L
  3. # error "This is C++11" // doesn't get called, so pre-C++11
  4. #endif
  5.  
  6. int main()
  7. {
  8. typedef std::pair<int, std::string> pairAB;
  9. pairAB p2;
  10.  
  11. __typeof__(p2.first) a2 = 42;
  12. __typeof__(p2.second) b2 = "hello again";
  13.  
  14. p2.first = a2;
  15. p2.second = b2;
  16. }
  17.  
Success #stdin #stdout 0s 2812KB
stdin
Standard input is empty
stdout
Standard output is empty