File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments