Closed CaseyCarter closed 1 year ago
finally needs to use decay_t instead of remove_cvref_t so it can properly accept non-object function arguments by decaying to function pointer type. Adds test coverage for this use case which was previously missing.
finally
decay_t
remove_cvref_t
Thanks for the catch!
finally
needs to usedecay_t
instead ofremove_cvref_t
so it can properly accept non-object function arguments by decaying to function pointer type. Adds test coverage for this use case which was previously missing.