diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-05-13 11:41:54 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2025-05-26 20:49:46 +0200 |
| commit | 4696aecf170acc6b98301132766ac5e17d574cdf (patch) | |
| tree | 24ec6324ccdc0bbb8915e7e625b863b9a5c37c51 /src/common | |
| parent | f8f7d95c5d75cfa4088c6cb2f01fb7275315caba (diff) | |
Core/Misc: Make string and string_view literal suffixes globally available
(cherry picked from commit 546d23264c8886cad0dc03f2df9c64e999c8573a)
# Conflicts:
# src/common/Configuration/Config.cpp
# src/server/game/Chat/Hyperlinks.cpp
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/Common.h | 3 | ||||
| -rw-r--r-- | src/common/Configuration/Config.cpp | 1 | ||||
| -rw-r--r-- | src/common/Cryptography/Authentication/SRP6.cpp | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/common/Common.h b/src/common/Common.h index 847b296d1a4..208809dcdfc 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -22,6 +22,9 @@ #include <array> #include <string> +using namespace std::string_literals; +using namespace std::string_view_literals; + #define STRINGIZE(a) #a enum TimeConstants diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp index 62404ec7cad..0da4bd117a2 100644 --- a/src/common/Configuration/Config.cpp +++ b/src/common/Configuration/Config.cpp @@ -16,6 +16,7 @@ */ #include "Config.h" +#include "Common.h" #include "Log.h" #include "StringConvert.h" #include <boost/filesystem/directory.hpp> diff --git a/src/common/Cryptography/Authentication/SRP6.cpp b/src/common/Cryptography/Authentication/SRP6.cpp index e015b8c33f6..25ed10de56a 100644 --- a/src/common/Cryptography/Authentication/SRP6.cpp +++ b/src/common/Cryptography/Authentication/SRP6.cpp @@ -16,14 +16,13 @@ */ #include "SRP6.h" +#include "Common.h" #include "CryptoRandom.h" #include <algorithm> #include <functional> namespace Trinity::Crypto::SRP { -using namespace std::string_literals; - BigNumber const GruntSRP6::N = "894B645E89E1535BBDAD5B8B290650530801B18EBFBF5E8FAB3C82872A3E9BB7"s; BigNumber const GruntSRP6::g = 7; |
