From d1a9ddf80307c7fd8aa5bb060792523cf3e50482 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Thu, 18 Feb 2016 07:33:55 +0900 Subject: [PATCH] Fixed #422. Replaced the inheriting constructor with a forwarding constructor. Removed the template constructors that are covered by the forwarding constructor. --- include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp b/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp index 22cd66b3e..871a61237 100644 --- a/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp +++ b/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp @@ -34,16 +34,12 @@ namespace type { public: using base = std::tuple; - using base::base; - tuple() = default; tuple(tuple const&) = default; tuple(tuple&&) = default; template - tuple(tuple const& other):base(static_cast const&>(other)) {} - template - tuple(tuple && other):base(static_cast &&>(other)) {} + tuple(OtherTypes&&... other):base(std::forward(other)...) {} tuple& operator=(tuple const&) = default; tuple& operator=(tuple&&) = default;