From d569ed65d05791fa6589115e1bfea879c8e9c591 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Wed, 31 Aug 2022 16:48:13 -0700 Subject: [PATCH] Add `remove_cv` too per Casey's suggestion Co-authored-by: Casey Carter --- include/gsl/util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/util b/include/gsl/util index 4d2f5cf..8d3f381 100644 --- a/include/gsl/util +++ b/include/gsl/util @@ -74,7 +74,7 @@ private: template GSL_NODISCARD auto finally(F&& f) noexcept { - return final_action>{std::forward(f)}; + return final_action>>{std::forward(f)}; } // narrow_cast(): a searchable way to do narrowing casts of values