Before using the OS APIs directly, take a look if the STL or boost already provides this functionality. Also be
Continue readingCategory: Programming
Code documentation (Doxygen)
General Always document large software projects, so other programmers can understand your code. Consider using tools like Javadoc or Doxygen
Continue readingWhen to use which cast (C++)
Types Type Area Risk static_cast – Converts fundamental types– Non-const to const– Down-casts (dangerous) Medium dynamic_cast – Down- and side-casts
Continue readingCyclic references (C++)
Problem The following code shows the problem of a cyclic reference with shared pointers. When leaving the main function the
Continue readingFunction pointer vs. std::function vs Function template
Showcase Code ▼ Compiler ▼ – Tool: godbolt.org – Compiler: x86-64 Clang 16.0.0 – Args: -std=c++20 – Output: Intel asm
Continue readingData structures – Overview (libstdc++)
The “C++ standard library” isn’t defining implementation details of the data structures, it just defines their behavior. The libstdc++ is
Continue readingSmart Pointer (C++)
Especially in older C++ programms it was very common to work with a lot of raw pointer (legacy pointer). That
Continue reading