File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ class Thread
7474public:
7575#ifdef WIN_NT
7676 typedef HANDLE Handle;
77- /*
78- * "constexpr" not applicable for Handle INVALID_HANDLE = INVALID_HANDLE_VALUE
79- * because in Windows INVALID_HANDLE_VALUE define in handleapi.h as:
80- * "#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)"
81- * but C-cast & reinterpret_cast<>() are prohibited in constexpr.
82- * The Clang++ compiler does not consider it`s as a constant expression and raise compilation error:
83- * "constexpr variable 'INVALID_HANDLE' must be initialized by a constant expression"
84- */
85- inline static const Handle INVALID_HANDLE = INVALID_HANDLE_VALUE ;
77+ /*
78+ * "constexpr" not applicable for Handle INVALID_HANDLE = INVALID_HANDLE_VALUE
79+ * because in Windows INVALID_HANDLE_VALUE define in handleapi.h as:
80+ * "#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)"
81+ * but C-cast & reinterpret_cast<>() are prohibited in constexpr.
82+ * The Clang++ compiler does not consider it`s as a constant expression and raise compilation error:
83+ * "constexpr variable 'INVALID_HANDLE' must be initialized by a constant expression"
84+ */
85+ inline static const Handle INVALID_HANDLE = INVALID_HANDLE_VALUE ;
8686#endif
8787#ifdef USE_POSIX_THREADS
8888 typedef pthread_t Handle;
You can’t perform that action at this time.
0 commit comments