1. Scoped Enums and Bitwise Operators

    C++11 introduced the concept of type-safe, scoped enums, which solve both namespace pollution of the neum members into the enclosing scope and implicit conversions to integral types. These enums may be used as follows: …


  2. Measuring Boost.MultiIndex Performance

    Although I generally view most of Boost as bloatware that suffers from feature-creep, Boost MultiIndex provides a simple, STL-like container with different views, allowing fast data acess with multiple indexers. …


  3. Switching to Visual Studio Code

    Sublime text was my go-to editor, it’s minimal and extendible, supporting only what you need without the bloat of other editors. It also contains powerful editing tools, such as multiple cursors, configurable editor layouts, search/replace with PCREs, dynamic file inclusion patterns, and a rich plugin ecosystem. …


  4. Using QtTest Effectively

    Unittesting GUI applications is painful and slow with limited tools available. Although developers generally use a design patterns that separate the view from the underlying model, allowing testing of the backend, the resulting test coverage is insufficient for code with many execution paths in the visual layer. QtTest therefore provides tools to unittest both Qt views and models, simplifying test-driven development and GUI debugging. …