Skip to content

Commit 30035b1

Browse files
author
Stefanus Du Toit
committed
2014-02 CWG Motion 4.
2 parents 06b893d + 8f7923d commit 30035b1

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎source/basic.tex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,10 +2425,10 @@
24252425

24262426
\pnum
24272427
An 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

‎source/declarations.tex‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,10 +952,7 @@
952952

953953
\pnum
954954
The \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}
960957
class debug_flag {
961958
public:

‎source/templates.tex‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6210,6 +6210,12 @@
62106210
and the deduction is done as
62116211
described 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
\rSec3[temp.deduct.conv]{Deducing conversion function template arguments}
62146220

62156221
\pnum

0 commit comments

Comments
 (0)