aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-06-28 13:29:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-06-28 13:29:05 +0200
commit67b17701d5b1753dc6aaf5a63a4dc2ef2642ba83 (patch)
tree90bdf6a880fe5c19750f0982c1c7a7c9a9cc5e31
parent938c3d9b367608b0b95a9ec5012b86d48ef61f6a (diff)
Workaround for VC14 bug
-rw-r--r--build2/variable.hxx4
1 files changed, 4 insertions, 0 deletions
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);