C++におけるunsigned char std::basic_string<>について
C++でstd::basic_string<uint8_t>(符号なしchar文字列)を使用する際の問題点についての簡潔な投稿。暗号処理やサブバイト操作を行う際に符号ビットを扱わずに済む利便性があるが、いくつかの厄介な問題に遭遇した経験を共有している。
C++でstd::basic_string<uint8_t>(符号なしchar文字列)を使用する際の問題点についての簡潔な投稿。暗号処理やサブバイト操作を行う際に符号ビットを扱わずに済む利便性があるが、いくつかの厄介な問題に遭遇した経験を共有している。
The article explains that when a C++ compiler reports an error about code you didn't write, you should investigate who actually wrote that code. This helps in understanding misleading error messages like "illegal use of ->" when no arrow operator appears in your source.
You cannot directly add or remove a handle from an active MsgWaitForMultipleObjects call. However, you can arrange for the waiter to handle this operation for you.
You cannot directly add or remove a handle from an active WaitForMultipleObjects call. Instead, you need to coordinate with the other thread to achieve this functionality.
The article discusses the technical process of waiting for a thread to acknowledge changes when adding or removing handles from an active WaitForMultipleObjects operation. This is part two of a series on managing handles in Windows synchronization mechanisms.
The article discusses an algorithm for finding a duplicated item in an array of N integers where each integer is in the range 1 to N-1. It explains how to leverage the special characteristics of this constrained array to efficiently identify the duplicate element.