From bcfe4014e02fb90dbe4851f4c4a6b88c615b2024 Mon Sep 17 00:00:00 2001 From: Sztergbaum Roman Date: Mon, 2 Dec 2019 09:18:10 +0100 Subject: [PATCH] feat(type): add a forwarding constructor (allow native syntax) --- include/st/type.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/st/type.hpp b/include/st/type.hpp index 2506f75..afc8521 100644 --- a/include/st/type.hpp +++ b/include/st/type.hpp @@ -14,6 +14,12 @@ namespace st class type_base { public: + template + explicit constexpr type_base(Args &&... args) : _t(std::forward(args)...) + { + + } + explicit constexpr type_base() : _t() { }