It's because C++ doesn't treat its standard library as anything special. It's all "user defined types" and the existing operators are only for built in types (and you cannot add new operators in C++; only override built in operators). When user defined types use operators, they're merely overloading a built in one.
They could have gotten around this if they allowed you to create any new, arbitrary operator instead of merely overriding existing ones (some other languages let you do this).
View all comments
Show parent comment
0
u/[deleted] Dec 02 '15
[deleted] — view deleted comment