Skip to content

Commit ff80947

Browse files
committed
Use template keyword on type dependent name
1 parent e3046bd commit ff80947

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/pbat/math/linalg/mini/Matrix.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ PBAT_HOST_DEVICE auto FromBuffers(std::array<TScalar*, K> buf, TIndexMatrix cons
309309
using ScalarType = std::remove_cvref_t<TScalar>;
310310
SMatrix<ScalarType, K * M, N> A{};
311311
using pbat::common::ForRange;
312-
ForRange<0, K>([&]<auto k>() { A.Slice<M, N>(k * M, 0) = FromFlatBuffer(buf[k], inds); });
312+
ForRange<0, K>(
313+
[&]<auto k>() { A.template Slice<M, N>(k * M, 0) = FromFlatBuffer(buf[k], inds); });
313314
return A;
314315
}
315316

@@ -338,7 +339,8 @@ PBAT_HOST_DEVICE void ToBuffers(
338339
static_assert(MA / MI == K, "A must have number of rows == #buffers*#rows of inds");
339340
using ScalarType = typename TMatrix::ScalarType;
340341
using pbat::common::ForRange;
341-
ForRange<0, K>([&]<auto k>() { ToFlatBuffer(A.Slice<MI, NI>(k * MI, 0), inds, buf[k]); });
342+
ForRange<0, K>(
343+
[&]<auto k>() { ToFlatBuffer(A.template Slice<MI, NI>(k * MI, 0), inds, buf[k]); });
342344
}
343345

344346
} // namespace mini

0 commit comments

Comments
 (0)