Changeset 508cff0 for doc


Ignore:
Timestamp:
Sep 4, 2024, 5:35:55 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
82a5ea2, 9bb6c5f
Parents:
737bf73
Message:

fix quotations from C++ reference manual

Location:
doc/theses/jiada_liang_MMath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/Cenum.tex

    r737bf73 r508cff0  
    8787\end{cfa}
    8888
    89 Note, \CC has the same safe restriction~\cite[C.1.5.7.2]{C++} and provides the same workaround cast.
    90 \begin{description}[parsep=0pt]
     89Note, \CC has the same safe restriction and provides the same workaround cast:
     90\begin{cquote}
     91\begin{description}[leftmargin=*,topsep=0pt,itemsep=0pt,parsep=0pt]
    9192\item[Change:] \CC objects of enumeration type can only be assigned values of the same enumeration type.
    9293In C, objects of enumeration type can be assigned values of any integral type.
     
    102103\item[How widely used:] Common.
    103104\end{description}
     105\hfill ISO/IEC 14882:1998 (\CC Programming Language Standard)~\cite[C.1.5.7.2.5]{ANSI98:C++}
     106\end{cquote}
  • doc/theses/jiada_liang_MMath/relatedwork.tex

    r737bf73 r508cff0  
    353353whereas C @const@ declarations without @static@ are marked @R@.
    354354
    355 The following \CC non-backward compatible change is made~\cite[C.1.5.7.2]{C++}, plus the safe-assignment change shown in~\VRef{s:TypeSafety}.
    356 \begin{description}[parsep=0pt]
     355The following \CC non-backward compatible change is made, plus the safe-assignment change shown in~\VRef{s:TypeSafety}.
     356\begin{cquote}
     357\begin{description}[leftmargin=*,topsep=0pt,itemsep=0pt,parsep=0pt]
    357358\item[Change:] In \CC, the type of an enumerator is its enumeration.
    358359In C, the type of an enumerator is @int@.
     
    370371Taking the size of an enumerator is not a common C coding practice.
    371372\end{description}
     373\hfill ISO/IEC 14882:1998 (\CC Programming Language Standard)~\cite[C.1.5.7.2.6]{ANSI98:C++}
     374\end{cquote}
    372375Hence, the values in a \CC enumeration can only be its enumerators (without a cast).
    373376
Note: See TracChangeset for help on using the changeset viewer.