3 ms·
Is there a typo in operator== ? friend bool operator==(const CIString& a, const CIString& b) { return ci_compare(a.s.c_str(), b.s.c_str()) != 0; } frien
by merraksh 9y ago
Is there a typo in operator== ?
friend bool operator==(const CIString& a, const CIString& b)
{ return ci_compare(a.s.c_str(), b.s.c_str()) != 0; }
friend bool operator< (const CIString& a, const CIString& b)
{ return ci_compare(a.s.c_str(), b.s.c_str()) < 0; }
This way a<b implies a==b.