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

remove test statements for move ctor #1899

Merged
merged 1 commit into from
May 24, 2022

Conversation

boeschf
Copy link
Contributor

@boeschf boeschf commented May 18, 2022

Remove checks for move ctor when it could be elided:

Newer compilers choose to elide the move constructor in certain cases. This leads to failure of 2 tests. As this behaviour is completely legal (and even desirable) it should not lead to failure. I therefore commented out the two statements in question and added a comment about this in the code. Note, that here we anyways only check the behaviour of std::function<void()> for which the task type is an alias at this point, so in my opinion the whole point of the test is a bit questionable.

Copy link
Member

@bcumming bcumming left a comment

Choose a reason for hiding this comment

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

lgtm!

@boeschf boeschf merged commit a9e4224 into arbor-sim:master May 24, 2022
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