From 5304c5704885fb974c19da3a6ad05b03a5e3a4dc Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 22 Sep 2014 13:30:09 +0900 Subject: [PATCH] fix default_construct --- sprout/tuple/default_construct.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sprout/tuple/default_construct.hpp b/sprout/tuple/default_construct.hpp index 67df5c7c..4107a35c 100644 --- a/sprout/tuple/default_construct.hpp +++ b/sprout/tuple/default_construct.hpp @@ -16,7 +16,13 @@ namespace sprout { // default_construct_t // default_construct // - struct default_construct_t {}; + struct default_construct_t { + public: + template + operator T() const { + return T(); + } + }; SPROUT_STATIC_CONSTEXPR sprout::tuples::default_construct_t default_construct = {}; } // namespace tuples