More portable fix for compilation error on gcc 11.3 (code review).
Better fix for the compilation issue addressed by !2 (merged).
The fix in !2 (merged) was based on std::intptr_t
(declared in <cstdint>
), which despite being in the standard since C++ 11, can be (or not) supported by a standard-compliant C++ toolchain.