Blog
-
C++ constexpr Function | 'Compile-Time Function' Guide
C++ constexpr function constexpr int square(int x) { return x * x; }. Organizes from concept to usage with practical examples and code.
-
C++ constexpr Lambda | 'Compile-Time Lambda' Guide
A guide to C++ constexpr lambdas: writing lambdas that run at compile time, capture rules, and where they help over regular constexpr functions.
-
C++ Custom Deleters | 'Custom Deleter' Guide
When custom deleters are needed, comparing function pointers·lambdas·function objects, differences in type·storage between unique_ptr and shared_ptr.
-
C++ Debugging Practical Complete Guide | gdb· LLDB
C++ debugging practical guide #include <iostream> using namespace std;. Focused on C++, debugging, and gdb.
-
C++ Default Arguments | 'Default Arguments' Guide
Default arguments allow optional parameters in a single function signature.
-
C++ EBCO and [[no_unique_address]]
EBCO and C++20 [[no_unique_address]] solving the problem of empty classes occupying memory.
-
Visual Studio C++ Slow Build — Complete Guide
Speed up slow Visual Studio C++ builds: precompiled headers, incremental linking, parallel compilation, and other settings that cut build time.
-
C++ const Error — Complete Guide
Fix C++ "passing const as non-const" compile errors: const-correctness rules, common causes, and how to design functions that accept const references.
-
C++ Lambda Capture Error — Complete Guide
Fix C++ lambda capture bugs that cause dangling references: capturing by reference vs by value, and how to manage lifetimes safely.
-
C++ Range-Based For Error — Complete Guide
Fix the C++ range-based for loop "no begin function" compile error by adding begin()/end() to custom containers, with working examples.