fork(1) download
  1. #include <stdio.h>
  2. #include <utility>
  3.  
  4. namespace test {
  5. struct foo {
  6. void swap(foo &) {
  7. printf("foo swap\n");
  8. }
  9. };
  10.  
  11. inline void swap(foo &a, foo &b) {
  12. a.swap(b);
  13. }
  14. }
  15.  
  16. int main() {
  17. test::foo a, b;
  18. using std::swap;
  19. swap(a, b);
  20. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
foo swap