Title
pair and tuple have too many conversions
Status
resolved
Section
[pairs]
Submitter
DIN

Created on 2010-08-25.00:00:00 last changed 163 months ago

Messages

Date: 2011-05-09.23:20:35

Proposed resolution:

See n3140.

Date: 2010-10-24.00:00:00

[ 2010-10-24 Daniel adds: ]

Accepting n3140 would solve this issue.

Date: 2010-10-25.01:00:51

[ Resolution proposed by ballot comment ]

Consider to add wording to constrain these function templates.

Date: 2010-10-24.10:50:39

Addresses DE-15

Several function templates of pair and tuple allow for too many implicit conversions, for example:

#include <tuple>
std::tuple<char*> p(0); // Error?

struct A { explicit A(int){} };
A a = 1; // Error
std::tuple<A> ta = std::make_tuple(1); // OK?
History
Date User Action Args
2010-11-18 14:01:09adminsetstatus: nad editorial -> resolved
2010-11-11 03:10:11adminsetstatus: open -> nad editorial
2010-10-25 01:00:51adminsetmessages: + msg5113
2010-10-25 01:00:51adminsetmessages: + msg5112
2010-10-24 23:23:18adminsetmessages: + msg5087
2010-08-25 00:00:00admincreate