Blog
-
C++ std::distribution | Probability distributions in the random header
Guide to C++11 random distributions: uniform_int, uniform_real, normal, Bernoulli, Poisson, and discrete. Engine pairing, parameter ranges, and thread-s...
-
LNK2019 Unresolved External Symbol in C++: Five Causes and Fixes (Visual Studio & CMake)
Fix MSVC LNK2019 and “unresolved external symbol”: missing definitions, .cpp not in the build, missing .lib links, name mismatches, and templates in hea...
-
C++ Segmentation Fault: Five Causes and Debugging with GDB, LLDB, and ASan
Fix segfaults: null dereference, dangling pointers, stack overflow, buffer overrun, bad casts. Core dumps, GDB/LLDB backtraces, and AddressSanitizer (-f...
-
CMake “Could NOT find …”: find_package Failures, CMAKE_PREFIX_PATH, vcpkg & Conan
Fix CMake Could NOT find Boost and other packages: Config vs Module mode, dev packages on Linux, version constraints, COMPONENTS, case sensitivity, and ...
-
C++ Exception Specifications: noexcept, History, and throw() Removal
C++ exception specifications from throw() to noexcept: move operations, swap, destructors, conditional noexcept, and why dynamic specs were removed.
-
C++ Execution Policies | Parallel and Vectorized STL (C++17)
std::execution::seq, par, par_unseq: when parallel algorithms help, data races, exceptions, and profiling parallel sort and reduce.
-
C++ expected | 'Error Handling' Guide
std::expected is a type introduced in C++23 that represents success or error. It explicitly expresses that a function can return a value or an error, al...
-
C++ explicit Keyword | 'explicit Keyword' Guide
explicit is a keyword attached to constructors and conversion operators to prevent implicit conversion. Used to prevent unintended conversion in copy in...
-
C++ Expression Templates | Lazy Evaluation Techniques
Expression templates defer vector and matrix operations until assignment, reducing temporaries and enabling loop fusion—used in numeric libraries, with ...
-
C++ Factory Pattern: Complete Guide | Encapsulating Object Creation & Extensibility
C++ Factory pattern explained: encapsulate creation, Simple Factory vs Factory Method vs Abstract Factory, auto-registration, plugins, and production pa...