aydarbiktimirov

Untitled

Sep 17th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class A {A(const char *) {}};
  4.  
  5. void f(bool) { std::cout << "bool"; }
  6. void f(A) { std::cout << "A"; }
  7.  
  8. int main() {
  9.     f("test");
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment