mirror of
https://github.com/microsoft/GSL.git
synced 2025-01-18 09:44:59 -05:00
Add remove_cv
too per Casey's suggestion
Co-authored-by: Casey Carter <Casey@Carter.net>
This commit is contained in:
parent
352f73df92
commit
d569ed65d0
@ -74,7 +74,7 @@ private:
|
||||
template <class F>
|
||||
GSL_NODISCARD auto finally(F&& f) noexcept
|
||||
{
|
||||
return final_action<std::remove_reference_t<F>>{std::forward<F>(f)};
|
||||
return final_action<std::remove_cv_t<std::remove_reference_t<F>>>{std::forward<F>(f)};
|
||||
}
|
||||
|
||||
// narrow_cast(): a searchable way to do narrowing casts of values
|
||||
|
Loading…
Reference in New Issue
Block a user