@@ -14,24 +14,24 @@ struct AlignFlags {
14
14
return !!bits;
15
15
}
16
16
constexpr AlignFlags operator ~() const {
17
- return { static_cast <decltype (bits)>(~bits)};
17
+ return AlignFlags { static_cast <decltype (bits)>(~bits) };
18
18
}
19
19
constexpr AlignFlags operator |(const AlignFlags& other) const {
20
- return { static_cast <decltype (bits)>(this ->bits | other.bits )};
20
+ return AlignFlags { static_cast <decltype (bits)>(this ->bits | other.bits ) };
21
21
}
22
22
AlignFlags& operator |=(const AlignFlags& other) {
23
23
*this = (*this | other);
24
24
return *this ;
25
25
}
26
26
constexpr AlignFlags operator &(const AlignFlags& other) const {
27
- return { static_cast <decltype (bits)>(this ->bits & other.bits )};
27
+ return AlignFlags { static_cast <decltype (bits)>(this ->bits & other.bits ) };
28
28
}
29
29
AlignFlags& operator &=(const AlignFlags& other) {
30
30
*this = (*this & other);
31
31
return *this ;
32
32
}
33
33
constexpr AlignFlags operator ^(const AlignFlags& other) const {
34
- return { static_cast <decltype (bits)>(this ->bits ^ other.bits )};
34
+ return AlignFlags { static_cast <decltype (bits)>(this ->bits ^ other.bits ) };
35
35
}
36
36
AlignFlags& operator ^=(const AlignFlags& other) {
37
37
*this = (*this ^ other);
@@ -59,24 +59,24 @@ struct DebugFlags {
59
59
return !!bits;
60
60
}
61
61
constexpr DebugFlags operator ~() const {
62
- return { static_cast <decltype (bits)>(~bits)};
62
+ return DebugFlags { static_cast <decltype (bits)>(~bits) };
63
63
}
64
64
constexpr DebugFlags operator |(const DebugFlags& other) const {
65
- return { static_cast <decltype (bits)>(this ->bits | other.bits )};
65
+ return DebugFlags { static_cast <decltype (bits)>(this ->bits | other.bits ) };
66
66
}
67
67
DebugFlags& operator |=(const DebugFlags& other) {
68
68
*this = (*this | other);
69
69
return *this ;
70
70
}
71
71
constexpr DebugFlags operator &(const DebugFlags& other) const {
72
- return { static_cast <decltype (bits)>(this ->bits & other.bits )};
72
+ return DebugFlags { static_cast <decltype (bits)>(this ->bits & other.bits ) };
73
73
}
74
74
DebugFlags& operator &=(const DebugFlags& other) {
75
75
*this = (*this & other);
76
76
return *this ;
77
77
}
78
78
constexpr DebugFlags operator ^(const DebugFlags& other) const {
79
- return { static_cast <decltype (bits)>(this ->bits ^ other.bits )};
79
+ return DebugFlags { static_cast <decltype (bits)>(this ->bits ^ other.bits ) };
80
80
}
81
81
DebugFlags& operator ^=(const DebugFlags& other) {
82
82
*this = (*this ^ other);
@@ -93,24 +93,24 @@ struct LargeFlags {
93
93
return !!bits;
94
94
}
95
95
constexpr LargeFlags operator ~() const {
96
- return { static_cast <decltype (bits)>(~bits)};
96
+ return LargeFlags { static_cast <decltype (bits)>(~bits) };
97
97
}
98
98
constexpr LargeFlags operator |(const LargeFlags& other) const {
99
- return { static_cast <decltype (bits)>(this ->bits | other.bits )};
99
+ return LargeFlags { static_cast <decltype (bits)>(this ->bits | other.bits ) };
100
100
}
101
101
LargeFlags& operator |=(const LargeFlags& other) {
102
102
*this = (*this | other);
103
103
return *this ;
104
104
}
105
105
constexpr LargeFlags operator &(const LargeFlags& other) const {
106
- return { static_cast <decltype (bits)>(this ->bits & other.bits )};
106
+ return LargeFlags { static_cast <decltype (bits)>(this ->bits & other.bits ) };
107
107
}
108
108
LargeFlags& operator &=(const LargeFlags& other) {
109
109
*this = (*this & other);
110
110
return *this ;
111
111
}
112
112
constexpr LargeFlags operator ^(const LargeFlags& other) const {
113
- return { static_cast <decltype (bits)>(this ->bits ^ other.bits )};
113
+ return LargeFlags { static_cast <decltype (bits)>(this ->bits ^ other.bits ) };
114
114
}
115
115
LargeFlags& operator ^=(const LargeFlags& other) {
116
116
*this = (*this ^ other);
0 commit comments