aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-12 11:02:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-12 11:02:19 +0200
commit326918c41ac1988e373d2aa5edb0ab68e735070c (patch)
tree28237c4579dcafea9cb3bd032574ebe5c37611bc /libbutl/regex.cxx
parentffc931dfb8829c8ae36b171d47f3230e10b67cea (diff)
Add support for VC 15u5
Diffstat (limited to 'libbutl/regex.cxx')
-rw-r--r--libbutl/regex.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbutl/regex.cxx b/libbutl/regex.cxx
index 6159d54..e4fd009 100644
--- a/libbutl/regex.cxx
+++ b/libbutl/regex.cxx
@@ -15,7 +15,7 @@
#include <ostream>
#include <sstream>
#include <stdexcept> // runtime_error
-#if defined(_MSC_VER) && _MSC_VER <= 1911
+#if defined(_MSC_VER) && _MSC_VER <= 1912
# include <cstring> // strstr()
#endif
#endif
@@ -52,7 +52,11 @@ namespace std
{
const char* d (e.what ());
-#if defined(_MSC_VER) && _MSC_VER <= 1911
+#if defined(_MSC_VER) && _MSC_VER <= 1912
+ // Note: run the regex test like this to check new VC version:
+ //
+ // ./driver.exe a '{' b
+ //
const char* rd (strstr (d, "): "));
if (rd != nullptr)
d = rd + 3;