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

List:       kde-devel
Subject:    Re: namespaces
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-11-11 10:30:49
Message-ID: 200411110830.58853.thiago.macieira () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Luciano Montanaro wrote:
>I am trying out the new patches for konqueror embedded, and I came
> across a problem with a clash between ksockaddr.{h,cpp} and
>network/ksocketaddress.{h,cpp} .

The two .cpp aren't in the same library. And you should not use the older 
interface in new programs -- much less the two together.

>instead, or alternatively each member should have the namespace
> explicitly prepended. Otherwise, the methods/members are not guaranteed
> to be in the correct namespace. Isn't the 'using' clause intended use
> to ease the use of externally defined classes and methods?
>
>Am I missing something? because this 'using' construct is quite
> liberally used all over kde.

There's nothing wrong with the current code. The ksockaddr.h interface is 
deprecated and is not included anywhere in the new code. So there's no 
mistake: the new code always references the new KNetwork code.

If you're experiencing problems, tell us. The current code has been in CVS 
for a long time.
-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

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

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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