From 7c426821e7fb4919e84ec20bd2f88481db665e90 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 29 Aug 2019 14:48:05 +0300 Subject: Work around VC14 miscompilation --- libbuild2/action.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2/action.hxx') 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 explicit action_state (A&&... a) : inner (forward (a)...), outer (forward (a)...) {} +#else + template + explicit + action_state (A& a): inner (a), outer (a) {} +#endif }; // Id constants for build-in and pre-defined meta/operations. -- cgit v1.1