ISO C++ forbids declaration of 'operator!' with no type

John (Eljay) Love-Jensen eljay@adobe.com
Tue Jan 27 12:20:00 GMT 2009


Hi Kolesar,

What happens if you add the return type?

bool operator !() const
{ return (NULL == get()); }

--Eljay



More information about the Gcc-help mailing list