From: Dean M. C. B. <dmb...@fr...> - 2008-04-15 11:34:59
|
I'm back... > -----Original Message----- > From: cpp...@li... > [mailto:cpp...@li...] On > Behalf Of Dean Michael C. Berris > Sent: Tuesday, April 15, 2008 7:39 PM > To: C++ Networking Library Developers Mailing List > Subject: Re: [cpp-netlib-devel] Review of http::message > > Hi Glyn, > > > -----Original Message----- > > From: cpp...@li... > > [mailto:cpp...@li...] On > Behalf Of > > Glyn Matthews > > Sent: Tuesday, April 15, 2008 7:24 PM > > To: C++ Networking Library Developers Mailing List > > Subject: Re: [cpp-netlib-devel] Review of http::message > > > [snip code] > > > > > > Maybe I'm missing something here, but isn't it an error to > initialize > > a static non-integral type inside a struct definition? > > I actually am not yet sure myself, but given 'char const * > const' is essentially a pointer type (which can be considered > an integral type) this just might work. This is one reason > I'd love to have unit tests too. ;) > > Let me get back to you on this, I can spike it with a compiler. > EEP. Yes, you're right. So this will have to come into some unnamed namespace to be included in every translation unit. Any other approach you can suggest? -- Dean Michael Berris Software Engineer, Friendster, Inc. <dmb...@fr...> +639287291459 |