From 5149237a5d0cb4a13fe98cbd95115c0957bc748a Mon Sep 17 00:00:00 2001 From: Wyatt O'Day Date: Tue, 29 Aug 2017 14:55:01 -0400 Subject: [PATCH] Fix compilation of secblock.h under Visual Studio 2010 (which only has partial C++ 2011 support). (#477) --- secblock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secblock.h b/secblock.h index 5c6f54bf..2ebd56f8 100644 --- a/secblock.h +++ b/secblock.h @@ -56,7 +56,7 @@ public: //! \since Crypto++ 6.0 #if defined(CRYPTOPP_DOXYGEN_PROCESSING) static const size_type ELEMS_MAX = ...; -#elif defined(CRYPTOPP_CXX11) +#elif defined(CRYPTOPP_CXX11_ENUM) enum : size_type {ELEMS_MAX = SIZE_MAX/sizeof(T)}; #else static const size_type ELEMS_MAX = SIZE_MAX/sizeof(T);