aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Regex.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-11-05 01:08:17 +0100
committerShauren <shauren.trinity@gmail.com>2024-02-26 12:23:57 +0100
commit66abca15933fcc6bfdd6dba71ee725da4e906af3 (patch)
treee86e19d83fbdf9e2f2f6a0a5797a0a2ce6201af2 /src/common/Utilities/Regex.h
parentf7a59ea7070f38591f90920e2f0a2c79dfc7f740 (diff)
Build: Cleanup boost CMakeLists from pre-c++11 flag checks
(cherry picked from commit c9f1606b760d724851c12a6bc13405a3ec03cc0c)
Diffstat (limited to 'src/common/Utilities/Regex.h')
-rw-r--r--src/common/Utilities/Regex.h8
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;