[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of deprecated C++ in DDD
From: |
Arnaud Desitter |
Subject: |
Re: Use of deprecated C++ in DDD |
Date: |
Wed, 05 Sep 2001 12:25:48 +0100 |
andrew.marlow@hsbcib.com wrote:
>
> I am trying to build DDD on HPUX 10.20B using aCC and have
Which version of aCC ?
> come across several compiler warnings about the use of
> file-scoped static. The compiler says it is ignoring the storage class
> directive. This is a warning, not an error, so the build proceeds but the
Are you talking about warning related to code such as
extern "C" {
static void foo(){}
}
?
aCC complains unduly as it doesn't implement standard C++ properly
in that respect. See Section 9.2.5 of The C++ Programming Language
by B. Stroustrup.
> executable will not work properly. I understand that file-scoped static
Not true IMO. Can you elaborate ? And can you provide an example ?
> has been (relatively) recently deprecated by ANSI so I understand
> why the compiler does this. It is a pity that it does the wrong thing though.
> It stops DDD from working properly. Are there any plans to replace
> the file-scoped statics with class-scoped statics ?
>
> Regards,
>
> Andrew M.
>
Regards,
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.