From 5953a4885ae8dc4baa3f66292d6519e0ec254313 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 2 Apr 2024 09:03:50 -0700 Subject: Add internal traits to absl::string_view for lifetimebound detection This helps compilers that understand `ABSL_ATTRIBUTE_LIFETIME_BOUND` flag constructs such as `absl::StatusOr str = std::string(...)` as error-prone. PiperOrigin-RevId: 621196818 Change-Id: I78d4c66854cde9d06eaaec05869d956376109d9c --- absl/strings/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/strings/BUILD.bazel') diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel index 8b307832..d93a78a9 100644 --- a/absl/strings/BUILD.bazel +++ b/absl/strings/BUILD.bazel @@ -359,6 +359,7 @@ cc_test( "//absl/base:config", "//absl/base:core_headers", "//absl/base:dynamic_annotations", + "//absl/meta:type_traits", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], -- cgit v1.2.3