Issue The cyclic dependency is a problem which occurs if two classes includes each other in their header. hen.hpp egg.hpp
Continue readingCategory: Development
Operating System APIs (C++)
Before using the OS APIs directly, take a look if the STL or boost already provides this functionality. Also be
Continue readingCode documentation (Doxygen)
If you are working at a huge software project it’s important to always write a documentation. This is important cause
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 readingUnit testing series – Test with Stub (Part 4)
The second szenario is using a stub. Stub Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a
Continue readingUnit testing series – Test without double (Part 3)
The first test szenario isn’t using a double. Test App Exec $ g++ -c UserInterface.cpp WindowManager.cpp $ ar rcs libwnd.a
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 (C++)
In lots of posts you can read that “std::function is just a wrapper around a function pointer”, but you will
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