CVS: Cannot overload resolve std::string.size() in valops.c (fwd)
Chan Shih-Ping Richard
cshihpin@dso.org.sg
Tue Feb 29 22:08:00 GMT 2000
Hi all,
There seems to be an off-by-one error in valops.c that prevents
overload resolution of
string s.size();
string s.length();
Didn't Dan Berlin point this out sometime ago (?)- wonder have
I missed a fix in the CVS. When comparing "goodness-of-fit"
nparms = 0 and nargs = 1. In function find_overload_match
either
nargs should be 0
or
rank_function should use nargs-1.
Comments?
--
Chan Shih-Ping (Richard) <cshihpin@dso.org.sg>
DSO National Laboratories
20 Science Park Drive
Singapore 118230
More information about the Gdb
mailing list