@@ -10,7 +10,7 @@ A struct or a class is considered to be a tagged union if it has
1010exactly one union data member and exactly one enum data member and
1111any number of other data members that are neither unions or enums.
1212The union and enum data members that are from system header files or
13- the std namespace are not considered to make up the tagged union part
13+ the `` std `` namespace are not considered to make up the tagged union part
1414of a user-defined tagged union type.
1515
1616Example:
@@ -32,7 +32,7 @@ Example:
3232 };
3333
3434The following example illustrates the exception for unions and enums from
35- system header files and the std namespace.
35+ system header files and the `` std `` namespace.
3636
3737.. code-block :: c++
3838
@@ -43,11 +43,11 @@ system header files and the std namespace.
4343 pthread_mutex_t Mutex;
4444 };
4545
46- The pthread_mutex_t type may be defined as a union behind a typedef,
46+ The `` pthread_mutex_t `` type may be defined as a union behind a typedef,
4747in which case the check could mistake this type as a user-defined tagged union.
4848After all it has exactly one enum data member and exactly one union data member.
4949To avoid false-positive cases originating from this, unions and enums from
50- system headers and the std namespace are ignored when pinpointing the
50+ system headers and the `` std `` namespace are ignored when pinpointing the
5151union part and the enum part of a potential user-defined tagged union.
5252
5353How enum constants are counted
0 commit comments