Merge remote-tracking branch 'sidkshatriya/remove-ref-ref'

This commit is contained in:
Maxime Coste 2023-05-10 20:02:51 +10:00
commit 459007ae21

View File

@ -95,7 +95,7 @@ public:
template<typename U> using DecayOptional = typename DecayOptionalImpl<U>::Type; template<typename U> using DecayOptional = typename DecayOptionalImpl<U>::Type;
template<typename F> template<typename F>
auto map(F f) -> Optional<DecayOptional<decltype(f(std::declval<T&&>()))>> auto map(F f) -> Optional<DecayOptional<decltype(f(std::declval<T>()))>>
{ {
if (not m_valid) if (not m_valid)
return {}; return {};