Title
Library incomplete type permission phrase is unclear
Status
new
Section
[declval][unique.ptr][unique.ptr.dltr.general] [util.smartptr.shared][util.smartptr.weak][util.smartptr.enab]
Submitter
Zhihao Yuan

Created on 2016-03-08.00:00:00 last changed 107 months ago

Messages

Date: 2016-03-08.00:00:00

Currently the phrase to grant this permission is:

The template parameter T of LibraryTemplate may be an incomplete type.

Two problems:

  1. The timing is unclear. We always allow specializations like LibraryTemplate<Incomp>* p;

  2. To the users of a template, the correct terminology should be "argument" rather than "parameter".

Suggested resolution:

In an instantiation of LibraryTemplate, an incomplete type may be used as the template argument for the template parameter T.

as shown here.

Or, to copy N4510's wording:

An incomplete type T may be used when instantiating LibraryTemplate.

History
Date User Action Args
2016-03-08 00:00:00admincreate