expliziter Operator-Bool-Fehler
Ich bekomme dieCompilerfehler C2071 wenn ich versuche das umzusetzenexplicit operator bool
:
class C
{
public:
explicit operator bool() const
{
return !!*this;
}
};
Warum? Wie kann ich dieses Problem lösen?
Ich verwende Visual Studio 2012 RC.