New answers tagged

2

Although far from advisable (at least under normal circumstances), it's certainly possible to use operator overloading to get a compiler to accept an expression like ++i++ in C++ (getting a sane code reviewer to accept it is quite another story). #include <iostream> class DontDoThis { int v; public: DontDoThis(int init) : v(init) {} ...


Top 50 recent answers are included