mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-21 13:04:19 -04: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>
|
template <class F>
|
||||||
GSL_NODISCARD auto finally(F&& f) noexcept
|
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
|
// narrow_cast(): a searchable way to do narrowing casts of values
|
||||||
|
Loading…
x
Reference in New Issue
Block a user