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 62156215Let \exposid{as-variant} denote the following exposition-only function templates:
62166216\begin{codeblock}
62176217template<class... Ts>
6218- auto&& @\exposid{as-variant}@(variant<Ts...>& var) { return var; }
6218+ constexpr auto&& @\exposid{as-variant}@(variant<Ts...>& var) { return var; }
62196219template<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; }
62216221template<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); }
62236223template<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); }
62256225\end{codeblock}
62266226Let $n$ be \tcode{sizeof...(Variants)}.
62276227For each $0 \leq i < n$, let
You can’t perform that action at this time.
0 commit comments