Fix compilation of secblock.h under Visual Studio 2010 (which only has partial C++ 2011 support). (#477)
parent
8624587943
commit
5149237a5d
|
|
@ -56,7 +56,7 @@ public:
|
||||||
//! \since Crypto++ 6.0
|
//! \since Crypto++ 6.0
|
||||||
#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
||||||
static const size_type ELEMS_MAX = ...;
|
static const size_type ELEMS_MAX = ...;
|
||||||
#elif defined(CRYPTOPP_CXX11)
|
#elif defined(CRYPTOPP_CXX11_ENUM)
|
||||||
enum : size_type {ELEMS_MAX = SIZE_MAX/sizeof(T)};
|
enum : size_type {ELEMS_MAX = SIZE_MAX/sizeof(T)};
|
||||||
#else
|
#else
|
||||||
static const size_type ELEMS_MAX = SIZE_MAX/sizeof(T);
|
static const size_type ELEMS_MAX = SIZE_MAX/sizeof(T);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue