summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-10 01:07:12 -0500
committerJeffrey Walton <noloader@gmail.com>2021-03-10 01:07:12 -0500
commit62d7819062cce6de83b70351584605e7160150f5 (patch)
tree4e62c3cd6d0dd9afc4f1f8793809aa3e88c30b03 /misc.h
parent3a74e072a54d391927988380bf19fb1950c866f7 (diff)
downloadcryptopp-git-62d7819062cce6de83b70351584605e7160150f5.tar.gz
Update documentation
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/misc.h b/misc.h
index 6eddbe1a..87cc877d 100644
--- a/misc.h
+++ b/misc.h
@@ -6,6 +6,8 @@
#ifndef CRYPTOPP_MISC_H
#define CRYPTOPP_MISC_H
+#include "config.h"
+
#include "cryptlib.h"
#include "secblockfwd.h"
#include "smartptr.h"
@@ -486,12 +488,10 @@ inline size_t BytePtrSize(const std::string& str)
size_t BytePtrSize(const SecByteBlock& str);
/// \brief Integer value
-/// \details EnumToInt is a convenience macro to convert enums
-/// to integers. The cast avoids C++20 enum-enum conversion
-/// warnings.
-/// \details C++11 and above use a constexpr function. C++03
-/// and below use a macro due to [lack of] constexpr-ness in
-/// early versions of C++.
+/// \details EnumToInt avoids C++20 enum-enum conversion
+/// warnings under GCC and Clang. C++11 and above use a
+/// constexpr function. C++03 and below use a macro due
+/// to [lack of] constexpr-ness in early versions of C++.
/// \since Crypto++ 8.6
#if (CRYPTOPP_CXX11_CONSTEXPR)
template <typename T>