Xiahua
  • About
  • Posts
  • Tags
The C++ RVO Trap: When Deleted Move Constructors Break Your Code

The Surprising Case You write a simple C++ class. You want to be explicit, so you define a copy constructor but delete the move constructor. You expec… ...more

January 14, 2025 #C++
Solving the Static Initialization Order Fiasco (SIOF) with Meyer's Singleton

What is SIOF? The Static Initialization Order Fiasco (SIOF) is a bug that appears when one translation unit initializes a global object that depends o… ...more

January 14, 2025 #C++
Revisit Sorting Algorithms in C++

All kinds of sorting algorithms, re-visited! Easiest Bubble Sort Bubble sort is the easiest sorting algorithm; it can be considered an inferior versio… ...more

November 19, 2024 #C++ #Algorithm
12345 6
Recent
The C++ RVO Trap: When Deleted Move Constructors Break Your Code
Solving the Static Initialization Order Fiasco (SIOF) with Meyer's Singleton
Revisit Sorting Algorithms in C++
LeetCode Graph Question Summary
LeetCode Binary Tree Question Summary
LeetCode Linked List Question Summary
Asynchronous Multi-Thread Design Pattern with C++
Type Conversions in C++ and Rust
Precision loss detection in control systems.
Understanding Routing and NAT with WireGuard VPN
Ubuntu 24.04 LTS Cloud Server Quick Configuration
Why is std::hash a struct?
Perfect forwarding in C++
Avoid virtual functions in C++ (when possible)
The Art of Flattening: How to NOT Nest Your Code
About Contact Privacy Sitemap

© 2025 Xiahua

Powered by Zola & Abridge