[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Static functions
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-01-12 21:11:05
Message-ID: 200401121911.05283.thiago.macieira () kdemail ! net
[Download RAW message or body]


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

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic