Jan 27, 2025 9 2 A pattern for obtaining a single value while holding a lock Raymond Chen The immediately-invoked lambda that returns a value.
Jan 24, 2025 0 4 A brief and incomplete comparison of memory corruption detection tools Raymond Chen A short overview, definitely incomplete.
Jan 23, 2025 0 2 Memory corruption from outside the process looks like space aliens Raymond Chen The write isn't visible to your process, just the effect of the write.
Jan 20, 2025 1 3 Reminder: When a C++ object fails to construct, the destructor does not run Raymond Chen If you need to run after a failed construction, you have to put it in a base class or member variable.
Jan 17, 2025 6 2 The case of the crash when trying to erase an element from a std::set Raymond Chen Another kind of fiasco.
Jan 16, 2025 3 1 In a C++ class template specialization, how can I call the unspecialized version of a method? Raymond Chen You can't talk about things that might exist, so instead talk about things that do.
Jan 15, 2025 0 0 How does GetUserDefaultGeoName choose between ISO 3166-1 and UN M.49 codes? Raymond Chen Clarifying the behavior.
Jan 13, 2025 4 2 A simplified overview of ways to add or update elements in a std::map Raymond Chen And using it to find missing opportunities.
Jan 10, 2025 2 0 Why does inadvertently passing a std::string instead of a char const* to a variadic function crash on x86-32 but not x86-64? Raymond Chen Looking at the calling convention and the small string optimization.
Jan 9, 2025 0 3 Inside STL: Waiting for a std::atomic<std::shared_ptr<T>> to change, part 2 Raymond Chen Digging into the libstdc++ implementation.