9 Jul
2002
9 Jul
'02
3:45 p.m.
On Tue, 09 Jul 2002 17:19:20 +0200, Duane Murphy wrote:
s = s.replace( begin, end, variables[ identifier ] ); }
return s; }
This is shooting from the hip, but it seems like this might need to be:
const string::iterator begin = const_cast< string::iterator >( what[ 1 ].first );
string::const_iterator begin = what[ 1 ].first;
replace() needs iterators, not const_iterators. It simply has to be an iterator :) Regards, Daniel