Skip to content

Copy / Assignment of dash::Atomic #289

Open
@fuchsto

Description

@fuchsto

Question on dash::Atomic:

Why is the copy constructor deleted, but assignment is not?

  • operator=(T) is deleted
  • operator=(const self_t &) is implicitly defaulted

That can't be right
When I explicitly delete assignment, tests don't compile

Also, the constructor Atomic(T) is not marked explicit, so it's an implicit conversion constructor
What's the intended semantics here?

The current implementation contradicts the documentation in dash/include/dash/Atomic.h

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions