diff options
author | Adrian Kummerlaender | 2015-02-05 17:13:39 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-02-05 17:13:39 +0100 |
commit | 1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3 (patch) | |
tree | a8ec087590596694f1e80def81f08236b5399cb9 /src/conditional | |
parent | 868f7d2c46302f3f993ff8f7943823243a5d1a6d (diff) | |
download | TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar.gz TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar.bz2 TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar.lz TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar.xz TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.tar.zst TypeAsValue-1e0528b1a870e0e0f2b15f468fc60f80e5fc20b3.zip |
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
Diffstat (limited to 'src/conditional')
-rw-r--r-- | src/conditional/if.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; +>; } |