You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Igor Galić <i....@brainsware.org> on 2013/10/31 23:24:28 UTC

Re: [09/17] git commit: TS-2302: LogUtils wants to be a namespace, not a class


----- Original Message -----
> TS-2302: LogUtils wants to be a namespace, not a class

[snip]
> -
> -#define NELEMS(array)  (sizeof(array)/sizeof(array[0]))
> -
> -typedef int DoNotConstruct;
> -
> -class LogUtils
> +namespace LogUtils
>  {
> -public:
> -  LogUtils(DoNotConstruct object);
> -

wow... this is impressive.
How old is this code? How long has C++ had support for namespaces?

++ i
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


Re: [09/17] git commit: TS-2302: LogUtils wants to be a namespace, not a class

Posted by James Peach <jp...@apache.org>.
On Oct 31, 2013, at 3:24 PM, Igor Galić <i....@brainsware.org> wrote:

> 
> 
> ----- Original Message -----
>> TS-2302: LogUtils wants to be a namespace, not a class
> 
> [snip]
>> -
>> -#define NELEMS(array)  (sizeof(array)/sizeof(array[0]))
>> -
>> -typedef int DoNotConstruct;
>> -
>> -class LogUtils
>> +namespace LogUtils
>> {
>> -public:
>> -  LogUtils(DoNotConstruct object);
>> -
> 
> wow... this is impressive.
> How old is this code? How long has C++ had support for namespaces?

15 years or so?

J