Commit 6698a5af authored by Kenton Varda's avatar Kenton Varda

Fix template issues on compliers other than what I'm using.

parent 5c4ed12c
...@@ -621,8 +621,8 @@ kj::Maybe<const Row&> Table<Row, Indexes...>::find(Params&&... params) const { ...@@ -621,8 +621,8 @@ kj::Maybe<const Row&> Table<Row, Indexes...>::find(Params&&... params) const {
} }
template <typename Row, typename... Indexes> template <typename Row, typename... Indexes>
template <typename... Params, typename Func> template <typename Func, typename... Params>
class Table<Row, Indexes...>::FindOrCreateImpl<Func, Params...> { class Table<Row, Indexes...>::FindOrCreateImpl {
public: public:
template <size_t index> template <size_t index>
static Row& apply(Table<Row, Indexes...>& table, Params&&... params, Func&& createFunc) { static Row& apply(Table<Row, Indexes...>& table, Params&&... params, Func&& createFunc) {
...@@ -638,7 +638,7 @@ public: ...@@ -638,7 +638,7 @@ public:
get<index>(table.indexes).erase(table.rows.asPtr(), pos, params...); get<index>(table.indexes).erase(table.rows.asPtr(), pos, params...);
} }
}); });
if (Impl<>::insert(table, pos, newRow, index) == nullptr) { if (Table<Row, Indexes...>::template Impl<>::insert(table, pos, newRow, index) == nullptr) {
success = true; success = true;
} else { } else {
_::throwDuplicateTableRow(); _::throwDuplicateTableRow();
......
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