File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 746
746
\item every static data member of class \tcode {T};
747
747
748
748
\item every member function of class \tcode {T}
749
- \begin {note }
749
+ \begin {note* }
750
750
This restriction does not apply to constructors, which do not have
751
751
names\iref {class.ctor }
752
- \end {note }%
752
+ \end {note* }%
753
753
;
754
754
755
755
\item every member of class \tcode {T} that is itself a type;
Original file line number Diff line number Diff line change 6893
6893
6894
6894
\item
6895
6895
an invocation of a non-constexpr function
6896
- \begin {note }
6896
+ \begin {note* }
6897
6897
Overload resolution\iref {over.match }
6898
6898
is applied as usual.
6899
- \end {note }%
6899
+ \end {note* }%
6900
6900
;
6901
6901
6902
6902
\item
6922
6922
\item
6923
6923
an operation that would have undefined behavior
6924
6924
as specified in \ref {intro } through \ref {cpp }
6925
- \begin {note }
6925
+ \begin {note* }
6926
6926
including,
6927
6927
for example, signed integer overflow\iref {expr.prop }, certain
6928
6928
pointer arithmetic\iref {expr.add }, division by
6929
6929
zero\iref {expr.mul }, or certain shift operations\iref {expr.shift }
6930
- \end {note }%
6930
+ \end {note* }%
6931
6931
;
6932
6932
6933
6933
\item
Original file line number Diff line number Diff line change 275
275
% ending with END TEXT. A counter with name ENVIRON indicates the
276
276
% number of this kind of note / example that has occurred in this
277
277
% subclause.
278
- \newcommand {\newnoteenvironment }[3]{
279
- \newsubclausecounter {#1}
280
- \newenvironment {#1}
281
- {\def\noteend {#3}\par\small\stepcounter {#1}\noteintro {#2}}
282
- {\noteoutro {\noteend }\par }
278
+ \ExplSyntaxOn
279
+ \NewDocumentCommand \newnoteenvironment { m m m } {
280
+ \newsubclausecounter {#1}
281
+ \NewDocumentEnvironment {#1*} { }
282
+ {\def\noteend {#3}\par\small\stepcounter {#1}\noteintro {#2}}
283
+ {\noteoutro {\noteend }}
284
+ \NewDocumentEnvironment {#1} { }
285
+ {\begin {note* }}
286
+ {\end {note*}\par }
283
287
}
288
+ \ExplSyntaxOff
284
289
285
290
\newnoteenvironment {note}{Note \arabic {note}}{end note}
286
291
\newnoteenvironment {example}{Example \arabic {example}}{end example}
You can’t perform that action at this time.
0 commit comments