Don't use anonymous namespace in header file (GH #631, PR #633)

This commit is contained in:
Jeffrey Walton 2018-04-02 05:24:01 -04:00 committed by GitHub
parent 6faaf35195
commit cdd751d27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,9 +468,8 @@ public:
// More static initialization order fiasco workarounds. These definitions cannot be extern and
// cannot be static class members because they require a single definition in a source file.
ANONYMOUS_NAMESPACE_BEGIN
const NullNameValuePairs s_nullNameValuePairs;
ANONYMOUS_NAMESPACE_END
// User programs should use g_nullNameValuePairs rather than s_nullNameValuePairs.
static const NullNameValuePairs s_nullNameValuePairs;
// Doxygen cannot handle initialization
#if CRYPTOPP_DOXYGEN_PROCESSING