"basic_string" problem in libstdc++

Jason Merrill jason@cygnus.com
Thu Oct 9 22:08:00 GMT 1997


>>>>> H J Lu <hjl@lucon.org> writes:

> I cannot find a matching basic_string constructor
> for

>   string is (ar, ar+sizeof(ar)/sizeof(ar[0]));

> nor a matching replace memeber function for

>   x.replace (find (x.begin (), x.end (), 'l'),
> 	     find (x.rbegin (), x.rend (), 'l').base (),
> 	     ar, ar+sizeof(ar)/sizeof(ar[0]));

> Am I missing something?

Yes, the member templates.

Jason



More information about the Gcc-bugs mailing list