diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-11-05 01:08:17 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-11-05 01:08:17 +0100 |
commit | c9f1606b760d724851c12a6bc13405a3ec03cc0c (patch) | |
tree | e0adff73a6531ff337ff3ca28542b946385bd408 /src | |
parent | a761ebd6a612af4158efabcd1b729379173f5578 (diff) |
Build: Cleanup boost CMakeLists from pre-c++11 flag checks
Diffstat (limited to 'src')
-rw-r--r-- | src/common/Utilities/Regex.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common/Utilities/Regex.h b/src/common/Utilities/Regex.h index e5d71f59182..462487f41ed 100644 --- a/src/common/Utilities/Regex.h +++ b/src/common/Utilities/Regex.h @@ -18,15 +18,11 @@ #ifndef TrinityCore_Regex_h__ #define TrinityCore_Regex_h__ -#ifndef TC_HAS_BROKEN_WSTRING_REGEX -#include <regex> -#define TC_REGEX_NAMESPACE std -#else +// std::wregex doesn't work with patterns provided in db2 files +// so we have to use boost #include <boost/regex.hpp> #define TC_REGEX_NAMESPACE boost -#endif -// regex compatibility layer, required for clang building with libstdc++-4.9 namespace Trinity { using regex = TC_REGEX_NAMESPACE :: regex; |