help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-cgicc] Subclassing CgiInput


From: Allan Wind
Subject: Re: [help-cgicc] Subclassing CgiInput
Date: Thu, 19 Apr 2007 18:00:02 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

On 2007-04-19T20:49:30+0200, address@hidden wrote:
> FastCgiInput *   i = new FastCgiInput();
> CgiEnvironment * e = new CgiEnvironment(i);
> 
> A call to i->getenv("QUERY_STRING") is successful and returns the right query 
> string, but a call to e->getQueryString() returns an empty string.
> 
> The documentation says, that the operator= must be overloaded. What
> exactly does that mean? What signature should I use when overloading
> operator=? How does this affect the behaviour of the code?

It means you have to define:

FastCgiInput &  operator= (const FastCgiInput &)

The default copy constructor is currently called instead.  If you have
not, just trace the original implementation and do the same with yours
and see what happens.


/Allan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]