mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Turn off warning about function-styl casts in gsl_byte
This commit is contained in:
parent
fd5ad87bf2
commit
4e7997190c
@ -21,6 +21,11 @@
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
#pragma warning(push)
|
||||||
|
|
||||||
|
// don't warn about function style casts in byte related operators
|
||||||
|
#pragma warning(disable : 26493)
|
||||||
|
|
||||||
// MSVC 2013 workarounds
|
// MSVC 2013 workarounds
|
||||||
#if _MSC_VER <= 1800
|
#if _MSC_VER <= 1800
|
||||||
|
|
||||||
@ -149,6 +154,8 @@ inline constexpr byte to_byte() noexcept
|
|||||||
|
|
||||||
#endif // _MSC_VER <= 1800
|
#endif // _MSC_VER <= 1800
|
||||||
|
|
||||||
|
#pragma warning(pop)
|
||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
#endif // GSL_BYTE_H
|
#endif // GSL_BYTE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user