All pastes #913780 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-22 10:00 UTC
rendered paste body
#include <iostream>
#include <string>
using namespace std;
class C {
public:
  void f (int) { cout << "int\n"; }
  void f (string) { cout << "string\n"; }
  void f (bool) { std::cout << "bool\n"; }
};

main()
{
  C c;
  c.f ("xxx");
}


>>>>>


prints: bool

Why?!