aboutsummaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-14 10:43:49 +0100
committerAdrian Kummerlaender2015-02-14 10:43:49 +0100
commite24f25ada7e8f48dc35cb235e045a4324bccb4f2 (patch)
tree3b6c409c7d336557163dcb25e4b11fdef82a3a79 /test.cc
parent73680466149c7aad21de558b7acc11dfa05183d2 (diff)
downloadTypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar.gz
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar.bz2
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar.lz
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar.xz
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.tar.zst
TypeAsValue-e24f25ada7e8f48dc35cb235e045a4324bccb4f2.zip
Introduced `Eval` function evaluation helper
* replaces `typename *::type` constructs with `Eval` applications * aims to further unify function evaluation
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cc b/test.cc
index 11b870f..39d5349 100644
--- a/test.cc
+++ b/test.cc
@@ -220,7 +220,7 @@ static_assert(
static_assert(
std::is_same<
tav::Int<1>,
- tav::If<true, tav::Int<1>, tav::Int<2>>::type
+ tav::If<tav::Boolean<true>, tav::Int<1>, tav::Int<2>>::type
>::value,
"(if #t 1 2) != 1"
);
@@ -228,7 +228,7 @@ static_assert(
static_assert(
std::is_same<
tav::Int<2>,
- tav::If<false, tav::Int<1>, tav::Int<2>>::type
+ tav::If<tav::Boolean<false>, tav::Int<1>, tav::Int<2>>::type
>::value,
"(if #f 1 2) != 2"
);