diff --git a/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp b/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp index ef6c5544..866762e4 100644 --- a/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +++ b/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp @@ -43,7 +43,9 @@ namespace type { tuple(OtherTypes&&... other):base(std::forward(other)...) {} template - tuple(tuple && other):base(static_cast>(other)) {} + tuple(tuple const& other):base(static_cast const&>(other)) {} + template + tuple(tuple && other):base(static_cast &&>(other)) {} tuple& operator=(tuple const&) = default; tuple& operator=(tuple&&) = default;