This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: "basic_string" problem in libstdc++
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: "basic_string" problem in libstdc++
- From: Jason Merrill <jason at cygnus dot com>
- Date: 09 Oct 1997 22:08:43 -0700
- Cc: egcs-bugs at cygnus dot com
- References: <199710091746.NAA26054@bluebell.bbn.com><m0xJRZC-0004edC.cygnus.egcs@ocean.lucon.org>
>>>>> 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