|
2116 | 2116 |
|
2117 | 2117 | \diffref{conv.ptr}
|
2118 | 2118 | \change
|
2119 |
| -Converting \tcode{void*} to a pointer-to-object type requires casting. |
| 2119 | +Converting \tcode{\keyword{void}*} to a pointer-to-object type requires casting. |
2120 | 2120 |
|
2121 | 2121 | \begin{codeblock}
|
2122 | 2122 | char a[10];
|
|
2166 | 2166 |
|
2167 | 2167 | \diffref{expr.post.incr,expr.pre.incr}
|
2168 | 2168 | \change
|
2169 |
| -Decrement operator is not allowed with \tcode{bool} operand. |
| 2169 | +Decrement operator is not allowed with \keyword{bool} operand. |
2170 | 2170 | \rationale
|
2171 | 2171 | Feature with surprising semantics.
|
2172 | 2172 | \effect
|
2173 | 2173 | A valid ISO C expression utilizing the decrement operator on
|
2174 |
| -a \tcode{bool} lvalue |
| 2174 | +a \keyword{bool} lvalue |
2175 | 2175 | (for instance, via the C typedef in \libheaderref{stdbool.h})
|
2176 | 2176 | is ill-formed in \Cpp{}.
|
2177 | 2177 |
|
2178 | 2178 | \diffref{expr.sizeof,expr.cast}
|
2179 | 2179 | \change
|
2180 | 2180 | In \Cpp{}, types can only be defined in declarations, not in expressions.\\
|
2181 |
| -In C, a sizeof expression or cast expression may define a new type. |
| 2181 | +In C, a \keyword{sizeof} expression or cast expression may define a new type. |
2182 | 2182 | For example,
|
2183 | 2183 | \begin{codeblock}
|
2184 | 2184 | p = (void*)(struct x {int i;} *)0;
|
|
2570 | 2570 |
|
2571 | 2571 | \diffref{dcl.enum}
|
2572 | 2572 | \change
|
2573 |
| -In \Cpp{}, the type of an enumerator is its enumeration. In C, the type of an enumerator is \tcode{int}. |
| 2573 | +In \Cpp{}, the type of an enumerator is its enumeration. In C, the type of an enumerator is \keyword{int}. |
2574 | 2574 |
|
2575 | 2575 | Example:
|
2576 | 2576 | \begin{codeblock}
|
|
2653 | 2653 | \rationale
|
2654 | 2654 | Several alternatives were debated at length.
|
2655 | 2655 | Changing the parameter to
|
2656 |
| -\tcode{volatile} |
| 2656 | +\keyword{volatile} |
2657 | 2657 | \keyword{const}
|
2658 | 2658 | \tcode{X\&}
|
2659 | 2659 | would greatly complicate the generation of
|
|
2683 | 2683 | \diffref{class.bit}
|
2684 | 2684 | \change
|
2685 | 2685 | \indextext{bit-field!implementation-defined sign of}%
|
2686 |
| -Bit-fields of type plain \tcode{int} are signed. |
| 2686 | +Bit-fields of type plain \keyword{int} are signed. |
2687 | 2687 | \rationale
|
2688 | 2688 | Leaving the choice of signedness to implementations could lead to
|
2689 | 2689 | inconsistent definitions of template specializations. For consistency,
|
|
2849 | 2849 |
|
2850 | 2850 | \pnum
|
2851 | 2851 | The tokens
|
2852 |
| -\tcode{and}, |
2853 |
| -\tcode{and_eq}, |
2854 |
| -\tcode{bitand}, |
2855 |
| -\tcode{bitor}, |
2856 |
| -\tcode{compl}, |
2857 |
| -\tcode{not}, |
2858 |
| -\tcode{not_eq}, |
2859 |
| -\tcode{or}, |
2860 |
| -\tcode{or_eq}, |
2861 |
| -\tcode{xor}, |
| 2852 | +\keyword{and}, |
| 2853 | +\keyword{and_eq}, |
| 2854 | +\keyword{bitand}, |
| 2855 | +\keyword{bitor}, |
| 2856 | +\keyword{compl}, |
| 2857 | +\keyword{not}, |
| 2858 | +\keyword{not_eq}, |
| 2859 | +\keyword{or}, |
| 2860 | +\keyword{or_eq}, |
| 2861 | +\keyword{xor}, |
2862 | 2862 | and
|
2863 |
| -\tcode{xor_eq} |
| 2863 | +\keyword{xor_eq} |
2864 | 2864 | are keywords in \Cpp{}\iref{lex.key},
|
2865 | 2865 | and are not introduced as macros
|
2866 | 2866 | by \libheaderref{iso646.h}.
|
|
2869 | 2869 | \indexhdr{stdalign.h}%
|
2870 | 2870 |
|
2871 | 2871 | \pnum
|
2872 |
| -The token \tcode{alignas} is a keyword in \Cpp{}\iref{lex.key}, |
| 2872 | +The token \keyword{alignas} is a keyword in \Cpp{}\iref{lex.key}, |
2873 | 2873 | and is not introduced as a macro
|
2874 | 2874 | by \libheaderref{stdalign.h}.
|
2875 | 2875 |
|
2876 | 2876 | \rSec3[diff.header.stdbool.h]{Header \tcode{<stdbool.h>}}
|
2877 | 2877 | \indexhdr{stdbool.h}%
|
2878 | 2878 |
|
2879 | 2879 | \pnum
|
2880 |
| -The tokens \tcode{bool}, \tcode{true}, and \tcode{false} |
| 2880 | +The tokens \keyword{bool}, \keyword{true}, and \keyword{false} |
2881 | 2881 | are keywords in \Cpp{}\iref{lex.key},
|
2882 | 2882 | and are not introduced as macros
|
2883 | 2883 | by \libheaderref{stdbool.h}.
|
|
0 commit comments