1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
namespace std { class Base {}; } struct Derived : public std::Base { operator const char*() const; operator bool(void) const; }; void log(const char* str); void nothing() { Derived temp; log(temp); }