Skip to content

Commit 998805a

Browse files
Abseil Teamvslashg
authored andcommitted
Export of internal Abseil changes
-- 32b444c0540e8255cc216171aba57639903edc22 by CJ Johnson <[email protected]>: Add missing `final` to `absl::Cleanup` since it is not an interface type and should never be used as a base class. PiperOrigin-RevId: 359045692 GitOrigin-RevId: 32b444c0540e8255cc216171aba57639903edc22 Change-Id: I4f72714cd6f2e101709f31958af28b358f15646b
1 parent a50ae36 commit 998805a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/cleanup/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace absl {
7878
ABSL_NAMESPACE_BEGIN
7979

8080
template <typename Arg, typename Callback = void()>
81-
class ABSL_MUST_USE_RESULT Cleanup {
81+
class ABSL_MUST_USE_RESULT Cleanup final {
8282
static_assert(cleanup_internal::WasDeduced<Arg>(),
8383
"Explicit template parameters are not supported.");
8484

0 commit comments

Comments
 (0)