From 67b17701d5b1753dc6aaf5a63a4dc2ef2642ba83 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Jun 2018 13:29:05 +0200 Subject: Workaround for VC14 bug --- build2/variable.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build2/variable.hxx b/build2/variable.hxx index e11d00c..f9b8b3c 100644 --- a/build2/variable.hxx +++ b/build2/variable.hxx @@ -109,6 +109,9 @@ namespace build2 prereq // Prerequisite-specific. }; + // VC14 reports ambiguity but seems to work if we don't provide any. + // +#if !defined(_MSC_VER) || _MSC_VER > 1900 inline bool operator> (variable_visibility l, variable_visibility r) { @@ -132,6 +135,7 @@ namespace build2 { return r >= l; } +#endif ostream& operator<< (ostream&, variable_visibility); -- cgit v1.1