cplusplus / draft

C++ standards drafts
http://www.open-std.org/jtc1/sc22/wg21/
5.73k stars 751 forks source link

[basic.compound]/1 function type does not mention cv- and ref-quals #5565

Open languagelawyer opened 2 years ago

languagelawyer commented 2 years ago

1 Compound types can be constructed in the following ways: (1.2)functions, which have parameters of given types and return void or references or objects of a given type, [dcl.fct];

See, no cv-qualifier-seqopt ref-qualifieropt, when [dcl.fct] speaks about them

AlisdairM commented 1 month ago

Also no mention of exception specifications that have contributed to type since C++17.