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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

I write template class with operator:

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

My gcc compiler return error:
ISO C++ forbids declaration of 'operator!' with no type

But, on windows, build is OK without any warning or error.

How i can fix this error. Please help me.

Best Regards
Kolesar
-- 
View this message in context: http://www.nabble.com/ISO-C%2B%2B-forbids-declaration-of-%27operator%21%27-with-no-type-tp21681331p21681331.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux