Re: c++ operator << support for debug()()

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Wed, 09 Jul 2003 19:31:17 +0200

Hi Robert,

At 08.52 09/07/2003, Robert Collins wrote:

>On Wed, 2003-07-09 at 16:42, Henrik Nordstrom wrote:
> > On Wednesday 09 July 2003 01.53, Robert Collins wrote:
> >
> > > > std::ostringstream *Debug::currentDebug (NULL);
> >
> >
> > Hmm.. doesn't that have to be something like this?
> >
> > std::ostringstream (*Debug::currentDebug)(NULL);
>
>Huh? not AFAIK.
>std::ostringstream *Debug::CurrentDebug(NULL); , if we substitute
>variable for Debug::CurrentDebug, and int for std::ostringstream,
>becomes
>
>int *variable(NULL);
>
>which is clearly a pointer to an int, initialised with NULL.
>
>Guido, if you want to try an alternative syntax, you could try:
>
>std::ostringstream * Debug::CurrentDebug = NULL;

It seems that MS VC++ with this syntax is more happy, the new errors in
debug.cc are gone.

Thanks

Regards

Guido

>Rob
>--
>GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.
>

-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Wed Jul 09 2003 - 11:31:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:16 MST