From 1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 5 Feb 2015 17:13:39 +0100 Subject: Defer `If` template resolution analogously to other functions * all other functions sans `Cons` are resolved when the respective member `*::type` is instantiated * this was changed soely to increase coherence --- src/conditional/if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conditional') diff --git a/src/conditional/if.h b/src/conditional/if.h index b9568f6..b019674 100644 --- a/src/conditional/if.h +++ b/src/conditional/if.h @@ -10,11 +10,11 @@ template < typename TrueBranch, typename FalseBranch > -using If = typename std::conditional< +using If = std::conditional< Condition, TrueBranch, FalseBranch ->::type; +>; } -- cgit v1.2.3