This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "basic_string" problem in libstdc++


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]