3 ms·
Aside from vector<bool>, which pretty much everyone agrees is a failed experiment, where do you think operator overloading overused in the standard library?
by vinkelhake 11y ago
Aside from vector<bool>, which pretty much everyone agrees is a failed experiment, where do you think operator overloading overused in the standard library?
- Retra 11y agoIterators using ++ Write/Read using << and >>. Not a major problem, but it's weird and not very useful when you're trying to be C compatible. You can index into a std::deque, but not a std::queue. I'd also count the need for explicit in constructor declarations to be a similar kind of mistake.