Created on1999-01-24.00:00:00 last changed277 months ago
Proposed resolution (10/00):
Change12.2.4.3 [over.ics.rank] bullet 3.1sub-bullet 3 from
S1 andS2 differ only in their qualificationconversion and yield similar typesT1 andT2(7.3.6 [conv.qual]), respectively, and thecv-qualification signature of typeT1 is a proper subset ofthe cv-qualification signature of typeT2.to
S1 andS2 differ only in their qualificationconversion and yield similar typesT1 andT2(7.3.6 [conv.qual]), respectively, and thecv-qualification signature of typeT1 is a proper subset ofthe cv-qualification signature of typeT2, andS1 isnot the deprecated string literal array-to-pointer conversion(7.3.3 [conv.array]).
In12.2.4.3 [over.ics.rank], we have
int f(const int *); int f(int *); int i; int j = f(&i); //Calls f(int *)—end example] or, if not that,
void f(char *); void f(const char *); f("abc");The two conversion sequences differ only in their qualification conversions,and the destination types are similar. The cv-qualification signature of"char *", is a proper subset of the cv-qualification signatureof "const char *", sof(char *) is chosen, which is wrong.The rule should be like the one for conversion to bool — the deprecatedconversion should be worse than another exact match that is not the deprecatedconversion.| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-04-25 00:00:00 | admin | set | status: dr -> tc1 |
| 2000-11-18 00:00:00 | admin | set | status: ready -> dr |
| 2000-05-21 00:00:00 | admin | set | status: review -> ready |
| 2000-02-23 00:00:00 | admin | set | messages: +msg229 |
| 2000-02-23 00:00:00 | admin | set | status: open -> review |
| 1999-01-24 00:00:00 | admin | create | |