Index:
[thread]
[date]
[subject]
[author]
From: Carl Knerr <crk5@duke.edu>
To :
Date: Sun, 31 Jan 1999 16:47:14 -0500
String Class
Does the STD library's version of the string class include something
similar to mystring.substr(startPos, length)? Is there some other way
to do this? I get the following error message when trying to compile
when using the substr function:
arithmetica.cc:126: no matching function for call to
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
>::substr (int, int,
map<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
>,Expression,less<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
> >,__default_alloc_template<false,0> > &)'
--
Carl Knerr
"Proof of two long-held assumptions:
1) Fans can make a difference.
2) Even smart people can act like idiots."
- Sports Illustrated on the Cameron Crazies (8/10/98)
http://www.duke.edu/~crk5
Index:
[thread]
[date]
[subject]
[author]