diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-11-13 11:50:34 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-11-13 11:50:34 -0500 |
commit | 76b11b010c97d4fba5f6d5a48730191762413c9d (patch) | |
tree | a58a178391a0e6cd54439a25932a387ce00e1a32 /seckey.h | |
parent | 5be05bce076a2e0ef11f80a1d9b493fb8078f8bb (diff) | |
download | cryptopp-git-76b11b010c97d4fba5f6d5a48730191762413c9d.tar.gz |
Add CRYPTOPP_STATIC_CONSTEXPR macro
Diffstat (limited to 'seckey.h')
-rw-r--r-- | seckey.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -70,7 +70,7 @@ public: //! provided by a static function.
//! \param keylength the size of the key, in bytes
//! \details keylength is unused in the default implementation.
- CRYPTOPP_CONSTEXPR static unsigned int StaticGetDefaultRounds(size_t keylength)
+ CRYPTOPP_STATIC_CONSTEXPR unsigned int StaticGetDefaultRounds(size_t keylength)
{
// Comma operator breaks Debug builds with GCC 4.0 - 4.6.
// Also see http://github.com/weidai11/cryptopp/issues/255
@@ -151,7 +151,7 @@ public: //! \param keylength the size of the key, in bytes
//! \details The default implementation returns KEYLENGTH. keylength is unused
//! in the default implementation.
- CRYPTOPP_CONSTEXPR static size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
+ CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
{
// Comma operator breaks Debug builds with GCC 4.0 - 4.6.
// Also see http://github.com/weidai11/cryptopp/issues/255
@@ -261,7 +261,7 @@ public: //! then keylength is returned. Otherwise, the function returns keylength rounded
//! \a down to the next smaller multiple of KEYLENGTH_MULTIPLE.
//! \details keylength is provided in bytes, not bits.
- CRYPTOPP_CONSTEXPR static size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
+ CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
{return T::StaticGetValidKeyLength(keylength);}
};
|