Skip to content

Commit 66a5fcf

Browse files
committed
Merge pull request #428 from redboltz/bp_426_1.4
Backported #426 to version 1.4.0.
2 parents bb0617b + f642b70 commit 66a5fcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ namespace type {
3636
public:
3737
using base = std::tuple<Types...>;
3838

39-
using base::base;
4039

41-
tuple() = default;
4240
tuple(tuple const&) = default;
4341
tuple(tuple&&) = default;
4442

43+
template<typename... OtherTypes>
44+
tuple(OtherTypes&&... other):base(std::forward<OtherTypes>(other)...) {}
45+
4546
template<typename... OtherTypes>
4647
tuple(tuple<OtherTypes...> const& other):base(static_cast<std::tuple<OtherTypes...> const&>(other)) {}
4748
template<typename... OtherTypes>

0 commit comments

Comments
 (0)