Skip to content

register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check - #84

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1012946620
Nov 9, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1012946620

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check

Abseil requires C++17 and absl::string_view is unconditionally an alias
for std::string_view (ABSL_USES_STD_STRING_VIEW is always 1), making
#ifdef ABSL_USES_STD_STRING_VIEW and #ifndef ABSL_USES_STD_STRING_VIEW
checks unnecessary:

pybind11_abseil builds against Abseil 20260107.1, the first LTS without
the absl::string_view implementation, since
b2a99bc725b6
("bazel, cmake: Update Abseil to 20260107.1").

@copybara-service copybara-service Bot changed the title string_view: Remove redundant ABSL_USES_STD_STRING_VIEW checks register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check Nov 9, 2026

@Mizux Mizux left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@copybara-service
copybara-service Bot force-pushed the test_1012946620 branch 2 times, most recently from 69fc4dd to 21646f9 Compare November 9, 2026 15:45
…check

Abseil requires C++17 and `absl::string_view` is unconditionally an alias
for `std::string_view` (`ABSL_USES_STD_STRING_VIEW` is always `1`), making
`#ifdef ABSL_USES_STD_STRING_VIEW` and `#ifndef ABSL_USES_STD_STRING_VIEW`
checks unnecessary:

* abseil/abseil-cpp@7a03cdb
  ("Require C++17")
* abseil/abseil-cpp@9ebd93a
  ("Remove the implementation of `absl::string_view`")

pybind11_abseil builds against Abseil 20260107.1, the first LTS without
the `absl::string_view` implementation, since
b2a99bc725b6
("bazel, cmake: Update Abseil to 20260107.1").

PiperOrigin-RevId: 1017342067
@copybara-service
copybara-service Bot merged commit d716e21 into master Nov 9, 2026
21 checks passed
@copybara-service
copybara-service Bot deleted the test_1012946620 branch November 9, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants