Re: Subclassing CgiInput
Allan Wind <[email protected]> Thu, 19 Apr 2007 18:00:02 -0400
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
On 2007-04-19T20:49:30+0200, [email protected] 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