Merge pull request #27 from jdarpinian/msvc

MSVC can't handle constexpr INVALID_HANDLE_VALUE
This commit is contained in:
mandreyel 2018-10-24 17:45:46 +02:00 committed by GitHub
commit 039c4daa9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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