diff options
author | Abseil Team <absl-team@google.com> | 2021-02-23 07:46:36 -0800 |
---|---|---|
committer | vslashg <gfalcon@google.com> | 2021-02-23 15:47:31 -0500 |
commit | 998805a4c79d5d7a771f7e5a8ee3cbbbcba04f94 (patch) | |
tree | 3a07d2193d23a2ea22695bbf7aaf51f6848d5539 | |
parent | a50ae369a30f99f79d7559002aba3413dac1bd48 (diff) |
Export of internal Abseil changes
--
32b444c0540e8255cc216171aba57639903edc22 by CJ Johnson <johnsoncj@google.com>:
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
-rw-r--r-- | absl/cleanup/cleanup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/cleanup/cleanup.h b/absl/cleanup/cleanup.h index 8ebf1e9b..61b53d55 100644 --- a/absl/cleanup/cleanup.h +++ b/absl/cleanup/cleanup.h @@ -78,7 +78,7 @@ namespace absl { ABSL_NAMESPACE_BEGIN template <typename Arg, typename Callback = void()> -class ABSL_MUST_USE_RESULT Cleanup { +class ABSL_MUST_USE_RESULT Cleanup final { static_assert(cleanup_internal::WasDeduced<Arg>(), "Explicit template parameters are not supported."); |