Created on 2017-02-03.00:00:00 last changed 89 months ago
Proposed resolution:
This wording is relative to N4640.
Modify [variant.ctor] paragraph 19 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializing an object of type T with the arguments std::forward<Args>(args)....
Modify [variant.ctor] paragraph 23 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type T with the arguments il, std::forward<Args>(args)....
Modify [variant.ctor] paragraph 27 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type TI with the arguments std::forward<Args>(args)....
Modify [variant.ctor] paragraph 31 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type TI with the arguments il, std::forward(args)....
Modify [variant.mod] paragraph 6 as indicated:
Effects: Destroys the currently contained value if valueless_by_exception() is false. Thendirect-initializes the contained value as if direct-non-list-initializingconstructinga value of type TI with the arguments std::forward<Args>(args)....
Modify [variant.mod] paragraph 11 as indicated:
Effects: Destroys the currently contained value if valueless_by_exception() is false. Thendirect-initializes the contained value as if direct-non-list-initializingconstructinga value of type TI with the arguments il, std::forward<Args>(args)....
[ Kona 2017-02-28 ]
Accepted as Immediate to resolve NB comment.
[ 2017-02-27, Marshall adds wording to cover two more cases ]
Previous resolution [SUPERSEDED]:
This wording is relative to N4640.
Modify [variant.ctor] paragraph 19 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializing an object of type T with the arguments std::forward<Args>(args)....Modify [variant.ctor] paragraph 23 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type T with the arguments il, std::forward<Args>(args)....Modify [variant.ctor] paragraph 27 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type TI with the arguments std::forward<Args>(args)....Modify [variant.ctor] paragraph 31 as indicated:
Effects: Initializes the contained value as if direct-non-list-initializingconstructingan object of type TI with the arguments il, std::forward(args)....
[ 2017-02-20, Marshall adds wording ]
The form of initialization for the emplace-constructors is not specified. We are very clear to mandate "as if by direct non-list initialization" for each constructor in optional, so there is no ambiguity regarding parens vs. braces. That wording idiom should be followed by variant.
Proposed change: Insert the phrase "as if direct-non-list-initializing" at appropriate locations in paragraphs 19, 23, 27, and 31
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:15:43 | admin | set | status: wp -> c++17 |
2017-03-05 23:46:08 | admin | set | status: immediate -> wp |
2017-03-03 22:08:49 | admin | set | messages: + msg9060 |
2017-03-03 22:08:49 | admin | set | status: new -> immediate |
2017-02-28 08:32:19 | admin | set | messages: + msg9014 |
2017-02-20 19:47:08 | admin | set | messages: + msg8958 |
2017-02-20 18:11:16 | admin | set | messages: + msg8957 |
2017-02-03 00:00:00 | admin | create |