diff options
Diffstat (limited to 'nihil/match.ccm')
| -rw-r--r-- | nihil/match.ccm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nihil/match.ccm b/nihil/match.ccm index 9859ea4..f51ce4b 100644 --- a/nihil/match.ccm +++ b/nihil/match.ccm @@ -10,10 +10,10 @@ export module nihil:match; namespace nihil { -template<class... Ts> +export template<class... Ts> struct match : Ts... { using Ts::operator()...; }; -template<typename... Ts, typename... Fs> +export template<typename... Ts, typename... Fs> constexpr decltype(auto) operator| (std::variant<Ts...> const &v, match<Fs...> const &match) { |
