mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-10 13:25:25 +03:00
Remove && from the template parameter given to declval
It seems redundant as declval already returns a rvalue reference
This commit is contained in:
parent
019fbc5439
commit
f41f3781e1
@ -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 {};
|
||||||
|
Loading…
Reference in New Issue
Block a user