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:
James Darpinian 2018-10-24 03:02:02 -07:00
parent 9bc0133764
commit 99447c57cf

View File

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