auto_ptr<char> should not point char array

AIDA Shinra <[email protected]> Tue, 22 Apr 2003 03:47:46 +0900
Newsgroups gmane.comp.gcc.cgicc.bugs
Message-ID <[email protected]>
In CgiEnvironment.cpp and CgiUtils.cpp auto_ptr<char> point char array
allocated by new[]. Such a usage causes undefined behaviour and should
be changed.

Easiest solution:

vector<char> v(size);
foo(&v[0]);

This code is allowed after a recent correct of the standard.

BTW, what do copy construction, assignment and comparison of CgiInput
mean? How should derived classes behave? I can't imagine any
reasonable definition.