]> git.lyx.org Git - lyx.git/blobdiff - src/support/regex.h
Fix build with GNU libstdc++ C++11 ABI
[lyx.git] / src / support / regex.h
index db365ca4e6c8d03004bdf555f274163b30034f08..7c64caf43210a5c93437ba3d9438e2a95397baff 100644 (file)
 #if __cplusplus >= 201103L && defined(LYX_USE_STD_REGEX)
 #  include <regex>
 #  ifdef _MSC_VER
-#    define match_partial _Match_partial
 namespace lyx {
   // inheriting 'private' to see which functions are used and if there are
   // other ECMAScrip defaults
+  // FIXME: Is this really needed?
+  //        If yes, then the MSVC regex implementation is not standard-conforming.
   class regex : private std::regex
   {
   public:
@@ -59,7 +60,6 @@ namespace lyx {
 #  else
 // <regex> in gcc is unusable in versions less than 4.9.0
 // see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631
-// TODO no match_partial in std, how to replace?
 #  define LR_NS std
 namespace lyx {
 using LR_NS::regex;