Skip to content

Replace std::any with a custom solution.#20251

Merged
zhangskz merged 1 commit into30.xfrom
backport-gcc-fix
Feb 5, 2025
Merged

Replace std::any with a custom solution.#20251
zhangskz merged 1 commit into30.xfrom
backport-gcc-fix

Conversation

@zhangskz
Copy link
Member

@zhangskz zhangskz commented Feb 5, 2025

std::any leads to compiler errors in some versions of gcc during constructibility trait checks.

Now that we can guarantee it, return by reference to avoid extra costs in copies.

PiperOrigin-RevId: 723478744

Cherry-pick of ef309f0

`std::any` leads to compiler errors in some versions of gcc during
constructibility trait checks.

Now that we can guarantee it, return by reference to avoid extra costs in
copies.

PiperOrigin-RevId: 723478744
@zhangskz zhangskz merged commit 6250d09 into 30.x Feb 5, 2025
206 checks passed
@zhangskz zhangskz deleted the backport-gcc-fix branch February 5, 2025 20:26
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.

3 participants