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 std::mutex() from list-initialization #355

Open
wants to merge 1 commit into
base: branch-0.42
Choose a base branch
from

Conversation

pentschev
Copy link
Member

Remove the std::mutex() constructor call from list-initialization in ucxx::Endpoint. This is totally unnecessary and may cause issues with some compilers (or compiler options):

...
error: function "std::mutex::mutex(const std::mutex &)" (declared at line 94 of /opt/conda/envs/base/lib/gcc/x86_64-conda-linux-gnu/11.4.0/include/c++/bits/std_mutex.h) cannot be referenced -- it is a deleted function

Remove the `std::mutex()` constructor call from list-initialization in
`ucxx::Endpoint`. This is totally unnecessary and may cause issues with
some compilers (or compiler options):

```
...
error: function "std::mutex::mutex(const std::mutex &)" (declared at line 94 of /opt/conda/envs/base/lib/gcc/x86_64-conda-linux-gnu/11.4.0/include/c++/bits/std_mutex.h) cannot be referenced -- it is a deleted function
```
@pentschev pentschev added bug Something isn't working non-breaking Introduces a non-breaking change labels Jan 24, 2025
@pentschev pentschev requested a review from a team as a code owner January 24, 2025 20:07
Copy link
Contributor

@seberg seberg left a comment

Choose a reason for hiding this comment

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

Thanks, not that I can approve: This fixed the compile issue where I ran into it (legate-raft under a specific setup).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants