From 428df47d989c4b2b353190dc9bd63c64593336ef Mon Sep 17 00:00:00 2001 From: Doom Date: Thu, 21 Feb 2019 00:03:47 -0500 Subject: [PATCH] Add a default constructor for strong types --- include/st/type.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/st/type.hpp b/include/st/type.hpp index f302b6a..2506f75 100644 --- a/include/st/type.hpp +++ b/include/st/type.hpp @@ -14,6 +14,10 @@ namespace st class type_base { public: + explicit constexpr type_base() : _t() + { + } + explicit constexpr type_base(const T &t) : _t(t) { }