aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-29 19:06:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-29 19:06:13 +0200
commit6e90704790f7e66e1b360c6d073524a55d5cfcda (patch)
treebf7f779d5f31776cd3d8918d422669dfbc9f77a7 /build2
parent410affb65b35171d32c11e71ef091790d47cd087 (diff)
Work around VC14 bug
Diffstat (limited to 'build2')
-rw-r--r--build2/cc/compile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 9fe0a5c..5a95169 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -29,8 +29,9 @@ namespace build2
{
using namespace bin;
+ template <typename T>
inline bool
- operator< (preprocessed l, preprocessed r)
+ operator< (preprocessed l, T r) // Template because of VC14 bug.
{
return static_cast<uint8_t> (l) < static_cast<uint8_t> (r);
}