__cxa_demangle

Nathan Myers ncm-nospam@cantrip.org
Thu Dec 5 21:57:00 GMT 2002


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



More information about the Libstdc++ mailing list