mirror of
https://github.com/microsoft/GSL.git
synced 2025-08-03 12:44:29 +02:00
Add remove_cv
too per Casey's suggestion
Co-authored-by: Casey Carter <Casey@Carter.net>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user