Skip to content

Compute noexcept specification from reference to the environment - #2596

Open
maartenarnst wants to merge 1 commit into
NVIDIA:mainfrom
uliegecsm:env_noexcept
Open

maartenarnst wants to merge 1 commit into
NVIDIA:mainfrom
uliegecsm:env_noexcept

Conversation

@maartenarnst

Copy link
Copy Markdown
Contributor

The call operator of __query constrains on __queryable_with<_Env const &, ...> but currently computes the exception specification with __nothrow_queryable_with<_Env, ...>.

One example of the impact is that, currently, if the type is not complete yet, the result is a compilation error due to the destructible assertion. With a reference, the type need not be complete yet.

This PR aligns the noexcept expression with the requires.

@copy-pr-bot

copy-pr-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler ericniebler added the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026
@pre-commit-ci pre-commit-ci Bot removed the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026
@ericniebler ericniebler added the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026
@pre-commit-ci pre-commit-ci Bot removed the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026
@ericniebler

Copy link
Copy Markdown
Collaborator

i'd rather go the other way and change the requires clause to __queryable_with<_Env, ...>, which is how it is used elsewhere in the library. if _Env is incomplete, the __queryable_with check will fail anyway.

@ericniebler ericniebler added the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026
@pre-commit-ci pre-commit-ci Bot removed the pre-commit.ci autofix apply this repo's .clang-format and push a commit to the PR label Dec 3, 2026

This branch has not been deployed

No deployments
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