From ab6776554bba3f7276c199dceb8f0b6816846e68 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 24 Nov 2021 13:17:59 -0800 Subject: [PATCH] One more case of constexpr plus inline --- DirectXTex/DirectXTex.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DirectXTex/DirectXTex.inl b/DirectXTex/DirectXTex.inl index af891f1..73923c3 100644 --- a/DirectXTex/DirectXTex.inl +++ b/DirectXTex/DirectXTex.inl @@ -43,7 +43,7 @@ constexpr TEX_COMPRESS_FLAGS operator|(TEX_FILTER_FLAGS a, TEX_COMPRESS_FLAGS b) //===================================================================================== _Use_decl_annotations_ -constexpr inline bool __cdecl IsValid(DXGI_FORMAT fmt) noexcept +constexpr bool __cdecl IsValid(DXGI_FORMAT fmt) noexcept { return (static_cast(fmt) >= 1 && static_cast(fmt) <= 190); }