aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.cxx
diff options
context:
space:
mode:
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;