aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-04-11 19:19:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-04-11 19:19:35 +0200
commitd57f8bd933ae6a2ddb2d40994d76edca13fe0314 (patch)
treea4e01cd81d927f3bc97372221034b58840cfb190
parenta16982956c5e87d9b2f238522d902df177ece98e (diff)
Work around MSVC /permissive- issue
-rw-r--r--libbutl/filesystem.mxx7
1 files changed, 7 insertions, 0 deletions
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: