cplusplus / CWG

Core Working Group
24 stars 7 forks source link

[defns.signature.member.templ] On the name in signature of constructor template #94

Open languagelawyer opened 2 years ago

languagelawyer commented 2 years ago

Full name of submitter: Andrey Erokhin

Reference (section label): [defns.signature.member.templ]

Link to reflector thread (if any):

Issue description: In CWG2124 it was noticed that constructors do not have return type. Was it missed that, according to [class.ctor], constructors also do not have names?

Suggested resolution:

signature \<class member function template> name (if any), parameter type list, ...

BTW: Do we want to similarly grant non-templated constructors a signature? ([defns.signature.member])

languagelawyer commented 2 years ago

Do we want to similarly grant non-templated constructors a signature? ([defns.signature.member])

There are at least 2 places where the document refers to constructor signatures: http://eel.is/c++draft/namespace.udecl#4 http://eel.is/c++draft/class.copy.ctor#5.sentence-2