Mar 29, 2024
Post comments count10
Post likes count5
How can I tell C++ that I want to discard a nodiscard value?
A variety of tricks, with different degrees of readability and legality.
A variety of tricks, with different degrees of readability and legality.
CreateEnvironmentBlock with a process's token, but I didn't get that process's environmentThat's not what the CreateEnvironmentBlock function does.
There's your classic, and there's some newfangled stuff.
You did this to yourself.
Trying to have it both ways.
It got converted too late.
DisplayInformation class from a desktop Win32 application, part 2Completing the prerequisites.
DisplayInformation class from a desktop Win32 application, part 1A little interop music.
com_ptr support class template argument deduction (CTAD)?It doesn't even try, and probably doesn't want you to do it.
com_ptr support class template argument deduction (CTAD)?Falling into a hole in the C++ language, not filled in until C++20.