N
Niels Dekker - no reply address
Which of the following four types (T1, T2, T3, T4) do you consider
MoveConstructible?
typedef int T1;
typedef const int T2;
typedef std::unique_ptr<int> T3;
typedef const std::unique_ptr<int> T4;
I'm asking because the definition of MoveConstructible, as specified by the
current C++0x working draft <www.open-std.org/JTC1/sc22/WG21>, may still
need some finetuning. Daniel Kruegler has already opened an issue on the
subject: "Missing expressions for Move/CopyConstructible",
http://www.open-std.org/JTC1/sc22/WG21/docs/lwg-active.html#1309 I'm
interested to hear your opinion.
Kind regards,
Niels
PS Just in case you don't know std::unique_ptr<T>: It's a new smart pointer
template class, to be included with C++0x. It will have a move-constructor,
which allows transferring the ownership from an rvalue argument. Its
copy-constructor will be deleted. Please check the current C++0x draft for a
more accurate specification.
MoveConstructible?
typedef int T1;
typedef const int T2;
typedef std::unique_ptr<int> T3;
typedef const std::unique_ptr<int> T4;
I'm asking because the definition of MoveConstructible, as specified by the
current C++0x working draft <www.open-std.org/JTC1/sc22/WG21>, may still
need some finetuning. Daniel Kruegler has already opened an issue on the
subject: "Missing expressions for Move/CopyConstructible",
http://www.open-std.org/JTC1/sc22/WG21/docs/lwg-active.html#1309 I'm
interested to hear your opinion.
Kind regards,
Niels
PS Just in case you don't know std::unique_ptr<T>: It's a new smart pointer
template class, to be included with C++0x. It will have a move-constructor,
which allows transferring the ownership from an rvalue argument. Its
copy-constructor will be deleted. Please check the current C++0x draft for a
more accurate specification.