File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6215
6215
Let \exposid{as-variant} denote the following exposition-only function templates:
6216
6216
\begin{codeblock}
6217
6217
template<class... Ts>
6218
- auto&& @\exposid{as-variant}@(variant<Ts...>& var) { return var; }
6218
+ constexpr auto&& @\exposid{as-variant}@(variant<Ts...>& var) { return var; }
6219
6219
template<class... Ts>
6220
- auto&& @\exposid{as-variant}@(const variant<Ts...>& var) { return var; }
6220
+ constexpr auto&& @\exposid{as-variant}@(const variant<Ts...>& var) { return var; }
6221
6221
template<class... Ts>
6222
- auto&& @\exposid{as-variant}@(variant<Ts...>&& var) { return std::move(var); }
6222
+ constexpr auto&& @\exposid{as-variant}@(variant<Ts...>&& var) { return std::move(var); }
6223
6223
template<class... Ts>
6224
- auto&& @\exposid{as-variant}@(const variant<Ts...>&& var) { return std::move(var); }
6224
+ constexpr auto&& @\exposid{as-variant}@(const variant<Ts...>&& var) { return std::move(var); }
6225
6225
\end{codeblock}
6226
6226
Let $n$ be \tcode{sizeof...(Variants)}.
6227
6227
For each $0 \leq i < n$, let
You can’t perform that action at this time.
0 commit comments