diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-29 14:48:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-29 14:55:45 +0300 |
commit | 7c426821e7fb4919e84ec20bd2f88481db665e90 (patch) | |
tree | 61264d4dbc61aaac356a25f7c8a6a0cee5718ddb /libbuild2 | |
parent | daee080865780378a6fb53b068f78c12ab95b3e4 (diff) |
Work around VC14 miscompilation
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/action.hxx | 8 |
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. |