Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Simplify Selection::Selection.#300

Merged
joni-herttuainen merged 1 commit intomasterfrom
1uc/simplify-ctor
Nov 3, 2023
Merged

Simplify Selection::Selection.#300
joni-herttuainen merged 1 commit intomasterfrom
1uc/simplify-ctor

Conversation

@1uc
Copy link
Copy Markdown
Collaborator

@1uc 1uc commented Oct 25, 2023

The modern pattern for constructors is to accept by value and move. This avoid duplication of the ctor at the (usually) negligible cost of at most one move.

The modern pattern for constructors is to accept by value and move. This
avoid duplication of the ctor at the (usually) negligible cost of at
most one move.
@1uc 1uc marked this pull request as ready for review October 25, 2023 13:52
@joni-herttuainen joni-herttuainen merged commit 5113adb into master Nov 3, 2023
@joni-herttuainen joni-herttuainen deleted the 1uc/simplify-ctor branch November 3, 2023 09:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants