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 {
}
template <typename Row, typename... Indexes>
template <typename... Params, typename Func>
class Table<Row, Indexes...>::FindOrCreateImpl<Func, Params...> {
template <typename Func, typename... Params>
class Table<Row, Indexes...>::FindOrCreateImpl {
public:
template <size_t index>
static Row& apply(Table<Row, Indexes...>& table, Params&&... params, Func&& createFunc) {
......@@ -638,7 +638,7 @@ public:
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;
} else {
_::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