From 326918c41ac1988e373d2aa5edb0ab68e735070c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Dec 2017 11:02:19 +0200 Subject: Add support for VC 15u5 --- libbutl/regex.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbutl/regex.cxx') 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 #include #include // runtime_error -#if defined(_MSC_VER) && _MSC_VER <= 1911 +#if defined(_MSC_VER) && _MSC_VER <= 1912 # include // 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; -- cgit v1.1