mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
Merge pull request #27 from jdarpinian/msvc
MSVC can't handle constexpr INVALID_HANDLE_VALUE
This commit is contained in:
commit
039c4daa9e
@ -51,7 +51,7 @@ using file_handle_type = int;
|
|||||||
|
|
||||||
// This value represents an invalid file handle type. This can be used to
|
// This value represents an invalid file handle type. This can be used to
|
||||||
// determine whether `basic_mmap::file_handle` is valid, for example.
|
// 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>
|
template<access_mode AccessMode, typename ByteT>
|
||||||
struct basic_mmap
|
struct basic_mmap
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user