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

C++20 Spaceship operator #2401

Merged
merged 16 commits into from
Sep 18, 2024

Conversation

thorstenhater
Copy link
Contributor

@thorstenhater thorstenhater commented Sep 10, 2024

First step along the road to C++20: Use the <=> operator instead of homebaked macros.
Also says goodbye to MacOS 12 and associated apple-clang, which is completely out of touch.

arbor/include/arbor/util/any_ptr.hpp Outdated Show resolved Hide resolved

counter& operator=(const counter&) = default;
counter& operator=(counter&&) = default;

private:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed to make this public?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, likely a spurious delete.

modcc/symge.hpp Outdated Show resolved Hide resolved
modcc/symge.hpp Outdated Show resolved Hide resolved
@thorstenhater
Copy link
Contributor Author

cscs-ci run default

boeschf
boeschf previously approved these changes Sep 18, 2024
@thorstenhater thorstenhater merged commit 9c7312e into arbor-sim:master Sep 18, 2024
23 of 24 checks passed
@thorstenhater thorstenhater deleted the c++20/spaceship-operator branch September 18, 2024 18:28
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