Unsigned integer Range: [0,255] Bitfield: 0x00 =++=> 0x01 =++=> … =++=> 0xFF Interpr.: 0 =++=> 1 =++=> … =++=> 255
Continue readingCategory: Programming
Layout of std::vector (libstdc++)
Source code Analysis Layout |——————————–| | vector vec | | 1 | 2 | 3 | 4 | 5 |
Continue readingBit operations (C++)
Set a bit value |= 1
Continue readingCommon mistakes (C++)
The following list shows a few common mistakes you will find in code you will have to review before its
Continue readingThreading – Mutex vs. Atomic (C++)
Since C++11 you can use std::thread, std::mutex and std::atomic for your multithreaded projects. The biggest problem with multithreading is the
Continue readingDestruction order (C++)
The variables/fields getting cleanup in the reverse order they have been declared (not initialized). … Objects are created # Cleanup
Continue readingCyclic dependencies (C++)
Issue The cyclic dependency is a problem which occurs if two classes includes each other in their header. hen.hpp egg.hpp
Continue readingOperating 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 reading