Commit 3353ff72 authored by Kenton Varda's avatar Kenton Varda

Work around apparent VS 2015 bug.

Admittedly this is a strict simplification to the code.

VS 2017 is fine either way.
parent a5defd43
......@@ -443,7 +443,7 @@ public:
};
template <typename Row, typename... Indexes>
Table<Row, Indexes...>::Table(): Table(Indexes()...) {}
Table<Row, Indexes...>::Table() {}
template <typename Row, typename... Indexes>
Table<Row, Indexes...>::Table(Indexes&&... indexes)
......
......@@ -123,6 +123,8 @@ struct TupleImpl<Indexes<indexes...>, Types...>
static_assert(sizeof...(indexes) == sizeof...(Types), "Incorrect use of TupleImpl.");
TupleImpl() = default;
template <typename... Params>
inline TupleImpl(Params&&... params)
: TupleElement<indexes, Types>(kj::fwd<Params>(params))... {
......@@ -151,6 +153,8 @@ class Tuple {
// The actual Tuple class (used for tuples of size other than 1).
public:
Tuple() = default;
template <typename... U>
constexpr inline Tuple(Tuple<U...>&& other): impl(kj::mv(other)) {}
template <typename... U>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment