Title
Unusable template constructors and conversion functions
Status
open
Section
13.10.2 [temp.arg.explicit]
Submitter
John Spicer

Created on 2000-11-17.00:00:00 last changed 284 months ago

Messages

Date: 2004-09-10.00:00:00

The note in paragraph 5 of 13.10.2 [temp.arg.explicit] makes clear that explicit template arguments cannot be supplied in invocations of constructors and conversion functions because they are called without using a name. However, there is nothing in the current wording of the Standard that makes declaring a constructor or conversion operator that is unusable because of nondeduced parameters (i.e., that would need to be specified explicitly) ill-formed. It would be a service to the programmer to diagnose this useless construct as early as possible.

History
Date User Action Args
2000-11-17 00:00:00admincreate