Skip to content

Change how we decide which empty string implementation to use.#20690

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_736906885
Mar 17, 2025
Merged

Change how we decide which empty string implementation to use.#20690
copybara-service[bot] merged 1 commit intomainfrom
test_736906885

Conversation

@copybara-service
Copy link
Copy Markdown

Change how we decide which empty string implementation to use.

The feature macro seems to be lying on some toolchains. Instead, ask the
compiler to try to run the default constructor in constexpr context which
should fail if the implementation doesn't actually support it and fallback to
the dynamic one.

This should fix #20645

@copybara-service copybara-service bot force-pushed the test_736906885 branch 4 times, most recently from c097c8b to aef6531 Compare March 17, 2025 13:55
The feature macro seems to be lying on some toolchains. Instead, ask the
compiler to try to run the default constructor in constexpr context which
should fail if the implementation doesn't actually support it and fallback to
the dynamic one.

This should fix #20645

PiperOrigin-RevId: 737603382
@copybara-service copybara-service bot merged commit 3dfd88f into main Mar 17, 2025
@copybara-service copybara-service bot deleted the test_736906885 branch March 17, 2025 14:19
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.

Unable to build v30.0 on debian-12 with clang-16

1 participant