Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(treewide): make some move ctors noexcept where appropriate #11846

Merged

Conversation

xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Nov 9, 2024

Motivation

This is good practice to avoid pessimisations.
Left comments for the reasoning why ctors should be noexcept. There are some tricky cases where we intentionally want throwing move ctors/assignments. But those cases should really be reviewed, since some of those can be replaced with more idiomatic copy/move-and-swap.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This is good practice to avoid pessimisations.
Left comments for the reasoning why ctors should be noexcept.
There are some tricky cases where we intentionally want throwing move ctors/assignments.
But those cases should really be reviewed, since some of those can be replaced
with more idiomatic copy/move-and-swap.
@Mic92
Copy link
Member

Mic92 commented Nov 9, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Nov 9, 2024

queue

🛑 The pull request has been merged manually

The pull request has been merged manually at 6e55f2c

@Mic92 Mic92 merged commit 6e55f2c into NixOS:master Nov 9, 2024
11 checks passed
@xokdvium xokdvium deleted the dev/noexcept-more-ctors-where-possible branch November 10, 2024 09:36
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