aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbuild2/action.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/action.hxx b/libbuild2/action.hxx
index 01c5307..5173eb2 100644
--- a/libbuild2/action.hxx
+++ b/libbuild2/action.hxx
@@ -124,10 +124,18 @@ namespace build2
action_state () = default;
+ // Miscompiled by VC14.
+ //
+#if !defined(_MSC_VER) || _MSC_VER > 1900
template <typename... A>
explicit
action_state (A&&... a)
: inner (forward<A> (a)...), outer (forward<A> (a)...) {}
+#else
+ template <typename A>
+ explicit
+ action_state (A& a): inner (a), outer (a) {}
+#endif
};
// Id constants for build-in and pre-defined meta/operations.