mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-08 01:36:52 +08:00
MSVC can't handle constexpr INVALID_HANDLE_VALUE
Causes error C2131: expression did not evaluate to a constant note: failure was caused by unevaluable pointer value
This commit is contained in:
parent
9bc0133764
commit
99447c57cf
@ -51,7 +51,7 @@ using file_handle_type = int;
|
||||
|
||||
// This value represents an invalid file handle type. This can be used to
|
||||
// determine whether `basic_mmap::file_handle` is valid, for example.
|
||||
constexpr static file_handle_type invalid_handle = INVALID_HANDLE_VALUE;
|
||||
const static file_handle_type invalid_handle = INVALID_HANDLE_VALUE;
|
||||
|
||||
template<access_mode AccessMode, typename ByteT>
|
||||
struct basic_mmap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user