From 66abca15933fcc6bfdd6dba71ee725da4e906af3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 5 Nov 2022 01:08:17 +0100 Subject: Build: Cleanup boost CMakeLists from pre-c++11 flag checks (cherry picked from commit c9f1606b760d724851c12a6bc13405a3ec03cc0c) --- src/common/Utilities/Regex.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/common/Utilities/Regex.h') 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 -#define TC_REGEX_NAMESPACE std -#else +// std::wregex doesn't work with patterns provided in db2 files +// so we have to use boost #include #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; -- cgit v1.2.3