codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <string> #include <algorithm> namespace foo { template<class T1, class T2> void swap(T1&, T2&) { throw "foo::swap is called"; } } int main() { std::string a1[42]; std::string a2[42]; using foo::swap; swap(a1, a2); }
Private
[
?
]
Run code
Submit