Skip to content

Commit 6015232

Browse files
derekmaurocopybara-github
authored andcommitted
Mark absl::FastTypeId final to prevent subclassing
PiperOrigin-RevId: 879085283 Change-Id: I8a094c45cebb83839f423ef80b0e25decc3b1ef5
1 parent 267879b commit 6015232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

absl/base/fast_type_id.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct FastTypeTag {
3131
} // namespace base_internal
3232

3333
// The type returned by `absl::FastTypeId<T>()`.
34-
class FastTypeIdType {
34+
class FastTypeIdType final {
3535
public:
3636
// Creates a value that does not correspond to any type. This value is
3737
// distinct from any value returned by `FastTypeId<T>()`.

0 commit comments

Comments
 (0)