Ok, so the last time I wrote C++ for a living, std::auto_ptr was all the std lib had available, and boost::shared_ptr was all the rage. I never really looked...
  • May 24, 2022
  • 0 Comments
Came across a proposal called “rvalue reference for *this” in clang’s C++11 status page. I’ve read quite a bit about rvalue references and understood them, but I don’t think...
  • May 21, 2022
  • 0 Comments
What does the volatile keyword do? In C++ what problem does it solve? In my case, I have never knowingly needed it. 19 Answers 19
  • May 21, 2022
  • 0 Comments
I came across this strange code snippet which compiles fine: class Car { public: int speed; }; int main() { int Car::*pSpeed = &Car::speed; return 0; } Why does...
  • May 18, 2022
  • 0 Comments