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

From: Robert Collins <robertc@dont-contact.us>
Date: 09 Jul 2003 16:52:06 +1000

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;

Rob

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

Received on Wed Jul 09 2003 - 00:52:11 MDT

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