Modern C++ Programming

  • Division By Zero Exploration pt 2

    August 20, 2020 by

    This is a continuation of an earlier post called, Division By Zero Exploration, which was a continuation of an even earlier post, Division By Zero. In the exploration post, I concluded that, if dividing by zero is valid, then, “it is basically possible to make anything equal anything”. Further thought has lead to an additional… Read more

  • Structured Bindings and replacing by reference

    May 14, 2020 by

    C++ 17 has Structured Bindings, what they do is create a temporary object and provide access to the object’s members locally. What happens is we create a temporary S object, and then copy the values memberwise into the binding structure. x now equals 5 and b equals 3.2. the S instance goes away. Since functions… Read more

View all posts

Follow My Blog

Get new content delivered directly to your inbox.