]> git.lyx.org Git - features.git/commitdiff
Add missing using declarations
authorGeorg Baum <baum@lyx.org>
Sun, 21 Dec 2014 18:05:00 +0000 (19:05 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 21 Dec 2014 18:05:00 +0000 (19:05 +0100)
This fixes using std::tr1::regex for non-MSVC compilers.

src/support/regex.h

index 125befcf1ae8850c8dd08bf50cd1098fc56d2cb3..96d6836e23cdd0e1387c63d5684c80ee0653461a 100644 (file)
@@ -62,6 +62,11 @@ namespace lyx {
 #    define match_partial match_default
 #  endif
 #  define LR_NS std::tr1
+namespace lyx {
+using LR_NS::regex;
+using LR_NS::regex_match;
+using LR_NS::sregex_iterator;
+}
 #else 
 #  include <boost/regex.hpp>
 #  define LR_NS boost