This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __cxa_demangle
On Fri, Dec 06, 2002 at 03:23:23AM +0100, Carlo Wood wrote:
> > > explicit session(char const* in, int len);
>
> Note: Input is read until a terminating 0 - OR until 'len' characters
> are read. This would allow to do:
>
> f(std::string input)
> {
> session<my a_locator> s(input.data(), input.size());
> ...
> }
>
> I hate copying strings ;)
Sorry to butt in, but mightn't we better use C++-library-style arguments
for this? I.e.:
session(char const* in, char const* end);
Also, I don't see any reason to handle NUL specially.
Nathan Myers
ncm-nospam@cantrip.org