From 460cded1959cfd34323226ac81639f33309d0ea0 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 16 Jan 2016 18:33:52 +0000 Subject: [PATCH] add BoolConstant --- ostd/#limits.hh# | 19 +++++++++++++++++++ ostd/type_traits.hh | 7 +++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 ostd/#limits.hh# diff --git a/ostd/#limits.hh# b/ostd/#limits.hh# new file mode 100644 index 0000000..1122a22 --- /dev/null +++ b/ostd/#limits.hh# @@ -0,0 +1,19 @@ +/* Various type limits. + * + * This file is part of OctaSTD. See COPYING.md for futher information. + */ + +#ifndef OSTD_LIMTIS_HH +#define OSTD_LIMITS_HH + +#include + +namespace ostd { + +template +struct Limits { +}; + +} /* namespace ostd */ + +#endif \ No newline at end of file diff --git a/ostd/type_traits.hh b/ostd/type_traits.hh index a0073ce..c45ef8a 100644 --- a/ostd/type_traits.hh +++ b/ostd/type_traits.hh @@ -59,8 +59,11 @@ struct Constant { constexpr Value operator()() const { return value; } }; -using True = Constant; -using False = Constant; +template +using BoolConstant = Constant; + +using True = BoolConstant; +using False = BoolConstant; template constexpr T Constant::value;