The C++ Programming Language – Part 8
This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition…
@RealBadbytes | Python/C/C++ development. Clean coding advocate. Vuln research and CTF enthusiast. NASA Rejects
The idea for this post started out as an exploration of compiler optimizations in GCC. It turned into a static and dynamic C++ class exploration exercise. The piece of code we’ll look at:
// file: bin1.hpp #includeusing namespace std; class FirstClass { public: FirstClass(int new_id) { id = new_id; }; int get_id() const { return id; }; private: int id; };