Static functions

Thiago Macieira thiago.macieira at kdemail.net
Mon Jan 12 21:11:05 GMT 2004


Leo Savernik wrote:
>Am Montag, 12. Januar 2004 17:00 schrieb Thiago Macieira:
>> kdemacros.h:
>> #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
>> #define KDE_EXPORT __attribute__ ((visibility("visible")))
>
>Can these also be applied to whole classes (as a shortcut for marking
> all member-functions hidden)?

No, it doesn't seem so:

$ g++ -o test.o -c test.cpp
test.cpp:11: warning: `visibility' attribute does not apply to types

You can apply it to member functions, though, but not the constructor or 
the destructor.
-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom (AT) mail (dot) com
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040112/5e89f22d/attachment.sig>


More information about the kde-core-devel mailing list