aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-01-19 18:43:46 +0100
committerAdrian Kummerlaender2015-01-19 18:43:46 +0100
commitf7706caa40132403d6c92ee660dc37560d032af5 (patch)
tree2595e3a99235194d54a317238869e1e90fe85250 /src
parent46e028017b34f43d7aa8004ccef5a56fccf2826c (diff)
downloadTypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar.gz
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar.bz2
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar.lz
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar.xz
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.tar.zst
TypeAsValue-f7706caa40132403d6c92ee660dc37560d032af5.zip
Added type and value equality test case
Diffstat (limited to 'src')
-rw-r--r--src/type.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/type.h b/src/type.h
index 74e0650..0bcf272 100644
--- a/src/type.h
+++ b/src/type.h
@@ -18,19 +18,16 @@ template <
typename X,
typename Y
>
-using equal_type = typename std::integral_constant<
- bool,
- std::is_same<typename X::value_type, typename Y::value_type>::value
+using EqualType = typename std::is_same<
+ typename X::value_type,
+ typename Y::value_type
>::type;
template <
typename X,
typename Y
>
-using equal_value = typename std::integral_constant<
- bool,
- X::value == Y::value
->::type;
+using EqualValue = Boolean<X::value == Y::value>;
}