Skip to content

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

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:dev/noexcept-more-ctors-where-possible
Nov 9, 2024
Merged

refactor(treewide): make some move ctors noexcept where appropriate#11846
Mic92 merged 1 commit intoNixOS:masterfrom
xokdvium:dev/noexcept-more-ctors-where-possible

Conversation

@xokdvium
Copy link
Copy Markdown
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
Copy Markdown
Member

Mic92 commented Nov 9, 2024

@mergify queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 9, 2024

queue

🛑 The pull request has been merged manually

Details

The pull request has been merged manually at 6e55f2c

@Mic92 Mic92 merged commit 6e55f2c into NixOS:master Nov 9, 2024
@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