Title
No definition for constructor
Status
cd1
Section
[atomics.types.operations]
Submitter
Alisdair Meredith

Created on 2008-06-03.00:00:00 last changed 163 months ago

Messages

Date: 2010-10-21.18:28:33

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]
Date: 2010-10-21.18:28:33

[ San Francisco: ]

Lawrence will provide wording.

This issue is addressed in N2783.

Date: 2008-06-03.00:00:00

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:33adminsetmessages: + msg4032
2010-10-21 18:28:33adminsetmessages: + msg4031
2008-06-03 00:00:00admincreate