Title
Additional contexts where instantiation is not required
Status
drafting
Section
13.9.2 [temp.inst]
Submitter
CWG

Created on 2016-01-11.00:00:00 last changed 83 months ago

Messages

Date: 2018-02-27.00:00:00

According to 13.9.2 [temp.inst] paragraph 6,

If the function selected by overload resolution (12.2 [over.match]) can be determined without instantiating a class template definition, it is unspecified whether that instantiation actually takes place.

There are other contexts in which a smart implementation could presumably avoid instantiations, such as when doing argument-dependent lookup involving a class template specialization when the template definition contains no friend declarations or checking base/derived relationships involving incomplete class template definitions. It would be helpful to enumerate such contexts.

History
Date User Action Args
2018-02-27 00:00:00adminsetstatus: open -> drafting
2016-01-11 00:00:00admincreate