Sergey Khalyutin wrote 20.02.2026 12:20:
> Excuse me, I`m do not understand, why do you think that WIN_NT is not defined in
> my build?
Because of these lines in common.h:
> #ifndef WIN_NT
> #ifndef INVALID_HANDLE_VALUE
> #define INVALID_HANDLE_VALUE (-1)
> #endif
> #endif
They define INVALID_HANDLE_VALUE only if WIN_NT is undefined.
Ok, later you changed your mind, so returning to the right question:
> replace
>
> -- constexpr static Handle INVALID_HANDLE = INVALID_HANDLE_VALUE;
> ++ inline static Handle INVALID_HANDLE = INVALID_HANDLE_VALUE;
>
> solved compilation error. But how is right?
For me the right thing would be to rollback this part of Vlad's refactoring
because POSIX thread handles are opaque and there is no explicitly invalid value
for them, so introduction of unified INVALID_HANDLE value was a mistake in this
case.
--
WBR, SD.