Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed msgpack#422.
Replaced the inheriting constructor with a forwarding constructor.
Removed the template constructors that are covered by the forwarding constructor.
  • Loading branch information
redboltz committed Feb 17, 2016
1 parent 43a86cf commit d1a9ddf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp
Expand Up @@ -34,16 +34,12 @@ namespace type {
public:
using base = std::tuple<Types...>;

using base::base;

tuple() = default;
tuple(tuple const&) = default;
tuple(tuple&&) = default;

template<typename... OtherTypes>
tuple(tuple<OtherTypes...> const& other):base(static_cast<std::tuple<OtherTypes...> const&>(other)) {}
template<typename... OtherTypes>
tuple(tuple<OtherTypes...> && other):base(static_cast<std::tuple<OtherTypes...> &&>(other)) {}
tuple(OtherTypes&&... other):base(std::forward<OtherTypes>(other)...) {}

tuple& operator=(tuple const&) = default;
tuple& operator=(tuple&&) = default;
Expand Down

0 comments on commit d1a9ddf

Please sign in to comment.