Closed eleriaqueen closed 10 months ago
Unfortunately, we shouldn't use using namespace
statements in header files - this would cause any other file that includes this header to implicitly use that namespace, which can lead to subtle bugs in other programs. It would be better to change all uses of nullptr_t in this file to std::nullptr_t instead.
I updated the fix according to your observations.
Thanks for fixing this!
Alpine Linux is often used in Docker containers.
I'm using these dependencies :
git cmake build-base gdb zlib-dev libevent-dev gnu-libiconv-dev ca-certificates linux-headers bash netcat-openbsd python3 procps
With the fix I'm able to compile phosg in an Alpine Linux container and compilation on a "regular" Arch based system still works. Without the fix there's and issue where compiler can't find definition of
nullptr_t
.