How can I force a copy of a C++ value? March 8, 2024 Mar 8, 2024 03/8/24 Raymond Chen Forcing a copy with a minimum of typing.
In C++/WinRT, you shouldn’t destroy an object while you’re co_awaiting it March 7, 2024 Mar 7, 2024 03/7/24 Raymond Chen A generalization of the ground rules of programming.
How do I make an expression non-movable? What’s the opposite of std::move? March 6, 2024 Mar 6, 2024 03/6/24 Raymond Chen You can turn it into a const thing so it's no longer movable, in a conventional sense.
In domain\user syntax, you can often use the period as an abbreviation for “this computer” March 5, 2024 Mar 5, 2024 03/5/24 Raymond Chen A bit of a typing saver, particularly with complex machine names.
Is shadowing a member variable from a base class a bad thing? Maybe, but maybe not. March 4, 2024 Mar 4, 2024 03/4/24 Raymond Chen It depends on the order in which things occurred.
C++/WinRT performance trap: Switching to Windows Runtime too soon March 1, 2024 Mar 1, 2024 03/1/24 Raymond Chen Stay in the devirtualized world until you are forced to leave.
If a parameter isn’t used, what should I pass? February 29, 2024 Feb 29, 2024 02/29/24 Raymond Chen It doesn't matter what you pass, but if you have to ask, then just pass zero.
On the whole idea of giving away a reference to yourself at destruction February 28, 2024 Feb 28, 2024 02/28/24 Raymond Chen Hey, at least it's possible.
Mitigating attacks based on knowing the length of a Windows Hello PIN February 27, 2024 Feb 27, 2024 02/27/24 Raymond Chen Balancing convenience against security, and how you can tune the knobs toward more security.
A C# LINQ one-liner to check if exactly one of a set of conditions is met February 26, 2024 Feb 26, 2024 02/26/24 Raymond Chen Maybe not the most efficient, but it's easy to write.