Why am I being told about a signed/unsigned comparison, and why only sometimes, and how can I fix it? June 19, 2023 Jun 19, 2023 06/19/23 Raymond Chen How the compiler back-end can influence warnings.
The case of the invalid handle despite being managed by an RAII type, part 2 June 16, 2023 Jun 16, 2023 06/16/23 Raymond Chen Avoiding using an object after is has destructed, and maybe using a less-well-known corner of the C++ language.
The case of the invalid handle despite being managed by an RAII type June 15, 2023 Jun 15, 2023 06/15/23 Raymond Chen The handle remains valid for the object's lifetime, but what is the object's lifetime?
How expensive is it to create a Windows performance counter? June 14, 2023 Jun 14, 2023 06/14/23 Raymond Chen The cost depends on the performance counter.
SIDs are really just another a fancy way of creating unique IDs in a decentralized way June 13, 2023 Jun 13, 2023 06/13/23 Raymond Chen Keeping them from colliding with each other.
The move constructor that you have to declare, even though you don’t want anyone to actually call it June 12, 2023 Jun 12, 2023 06/12/23 Raymond Chen Forcing named return value optimization.
Reordering C++ template type parameters for usability purposes, and type deduction from the future June 9, 2023 Jun 9, 2023 06/9/23 Raymond Chen You want them to go first, but you also want to deduce them.
How can I register a program to auto-relaunch if it crashes or is terminated?, redux June 8, 2023 Jun 8, 2023 06/8/23 Raymond Chen You can get a little bit of the way there.
Pulling sleight of hand tricks in a security vulnerability report, episode 2 June 7, 2023 Jun 7, 2023 06/7/23 Raymond Chen I see what you did there.
How can I make WiFi passwords per-user rather than per-system? June 6, 2023 Jun 6, 2023 06/6/23 Raymond Chen A little-known system configuration setting.