From cdd751d27a07d486acc18feedfebc450976a7abe Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 2 Apr 2018 05:24:01 -0400 Subject: [PATCH] Don't use anonymous namespace in header file (GH #631, PR #633) --- cryptlib.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cryptlib.h b/cryptlib.h index 0dda190f..d66869bd 100644 --- a/cryptlib.h +++ b/cryptlib.h @@ -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