File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 24252425
24262426\pnum
24272427An implementation shall not predefine the \tcode {main} function. This
2428- function shall not be overloaded. It shall have a return type of type
2428+ function shall not be overloaded. It shall have a declared return type of type
24292429\tcode {int}, but otherwise its type is \impldef {parameters to \tcode {main}}.
24302430\indextext {\idxcode {main()}!implementation-defined parameters~to}%
2431- All implementations shall allow both
2431+ An implementation shall allow both
24322432
24332433\begin {itemize }
24342434\item a function of \tcode {()} returning \tcode {int} and
Original file line number Diff line number Diff line change 952952
953953\pnum
954954The \tcode {constexpr} specifier has no
955- effect on the type of a \tcode {constexpr} function or a \tcode {constexpr} constructor.
956- The class of
957- which a \tcode {constexpr} function is a member shall be a literal
958- type~(\ref {basic.types }). \enterexample
955+ effect on the type of a \tcode {constexpr} function or a \tcode {constexpr} constructor. \enterexample
959956\begin {codeblock }
960957class debug_flag {
961958public:
Original file line number Diff line number Diff line change 62106210and the deduction is done as
62116211described in~\ref {temp.deduct.type }.
62126212
6213+ \pnum
6214+ A placeholder type~(\ref {dcl.spec.auto }) in the return type of a
6215+ function template is a non-deduced context. If template argument
6216+ deduction succeeds for such a function, the return type is determined
6217+ from instantiation of the function body.
6218+
62136219\rSec 3[temp.deduct.conv]{Deducing conversion function template arguments}
62146220
62156221\pnum
You can’t perform that action at this time.
0 commit comments