Mark absl::FastTypeId final to prevent subclassing

PiperOrigin-RevId: 879085283
Change-Id: I8a094c45cebb83839f423ef80b0e25decc3b1ef5
This commit is contained in:
Derek Mauro
2026-03-05 08:33:30 -08:00
committed by Copybara-Service
parent 267879b45a
commit 6015232266

View File

@@ -31,7 +31,7 @@ struct FastTypeTag {
} // namespace base_internal
// The type returned by `absl::FastTypeId<T>()`.
class FastTypeIdType {
class FastTypeIdType final {
public:
// Creates a value that does not correspond to any type. This value is
// distinct from any value returned by `FastTypeId<T>()`.