Created on 2008-06-03.00:00:00 last changed 172 months ago
Proposed resolution:
before the description of ...is_lock_free
,
that is before [atomics.types.operations] paragraph 4,
add the following description.
constexpr A::A(C desired);
- Effects:
- Initializes the object with the value
desired
. [Note: Construction is not atomic. —end note]
[ San Francisco: ]
Lawrence will provide wording.
This issue is addressed in N2783.
The atomic classes and class templates ([atomics.types.integral] / [atomics.types.address]) have a constexpr constructor taking a value of the appropriate type for that atomic. However, neither clause provides semantics or a definition for this constructor. I'm not sure if the initialization is implied by use of constexpr keyword (which restricts the form of a constructor) but even if that is the case, I think it is worth spelling out explicitly as the inference would be far too subtle in that case.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg4032 |
2010-10-21 18:28:33 | admin | set | messages: + msg4031 |
2008-06-03 00:00:00 | admin | create |