jawny błąd bool operatora
DostajęBłąd kompilatora C2071 kiedy próbuję wdrożyćexplicit operator bool
:
class C
{
public:
explicit operator bool() const
{
return !!*this;
}
};
Czemu? Jak mogę rozwiązać ten problem?
Używam Visual Studio 2012 RC.