From d57f8bd933ae6a2ddb2d40994d76edca13fe0314 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Apr 2019 19:19:35 +0200 Subject: Work around MSVC /permissive- issue --- libbutl/filesystem.mxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libbutl/filesystem.mxx b/libbutl/filesystem.mxx index da13c6c..f3d2c87 100644 --- a/libbutl/filesystem.mxx +++ b/libbutl/filesystem.mxx @@ -688,6 +688,13 @@ LIBBUTL_MODEXPORT namespace butl inline dir_iterator begin (dir_iterator&); inline dir_iterator end (const dir_iterator&); + // MSVC in the strict mode (/permissive-), which we enable by default from + // 15.5, needs this declaration to straighten its brains out. + // +#if defined(_MSC_VER) && _MSC_VER >= 1920 + inline dir_iterator begin (dir_iterator&&); +#endif + // Wildcard pattern match and search (aka glob). // // Currently the following wildcard characters are supported: -- cgit v1.1