Skip to content

Commit dbd29c7

Browse files
committed
incorporate template splice changes
1 parent 52d4760 commit dbd29c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/rsl/_impl/variant.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class variant_base {
255255
}
256256

257257
template for (constexpr auto Idx : std::views::iota(0ZU, alternatives.count)) {
258-
if constexpr (std::is_nothrow_move_constructible_v<[:alternatives.types[Idx]:]>) {
258+
if constexpr (std::is_nothrow_move_constructible_v<typename [:alternatives.types[Idx]:]>) {
259259
return true;
260260
}
261261
}
@@ -326,7 +326,7 @@ class variant_base {
326326
// TODO rewrite selected_index
327327
template <typename T>
328328
constexpr static auto selected_index =
329-
_variant_impl::selected_index<T, [:substitute(^^_impl::TypeList, alternatives.types):]>;
329+
_variant_impl::selected_index<T, typename [:substitute(^^_impl::TypeList, alternatives.types):]>;
330330

331331
// converting constructor
332332
template <typename T>
@@ -371,7 +371,7 @@ class variant_base {
371371
std::initializer_list<U> init_list,
372372
Args&&... args) //
373373
noexcept(std::is_nothrow_constructible_v< //
374-
[:alternatives.types[Idx]:], std::initializer_list<U>&, Args...>)
374+
typename [:alternatives.types[Idx]:], std::initializer_list<U>&, Args...>)
375375
: discriminator(Idx) {
376376
// Primary constructor
377377

0 commit comments

Comments
 (0)