Skip to content

US355 Make atomic_ref<T>::notify_one/all const #351

@wg21bot

Description

@wg21bot

31.07 [atomics.ref.generic]
31.7.1 [atomics.ref.operations]
31.7.2 [atomics.ref.int]
31.7.3 [atomics.ref.float]
31.7.4 [atomics.ref.pointer]

atomic_ref<T>::notify_one and atomic_ref<T>::notify_all should be const member functions (in the generic class and all the specializations), since it is the atomic object that is (conceptually) modified, not the atomic_ref<T> object.

Proposed change:
Make atomic_ref<T>::notify_one and atomic_ref<T>::notify_all const.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions