Add constexpr/noexcept for union ctor.
This commit is contained in:
parent
a3a9af06d5
commit
2ed1f9e9cf
@ -252,7 +252,7 @@ struct color_type {
|
|||||||
value.term_color = term_color;
|
value.term_color = term_color;
|
||||||
}
|
}
|
||||||
union color_union {
|
union color_union {
|
||||||
color_union() : rgb_color(color::black) {}
|
FMT_CONSTEXPR color_union() FMT_NOEXCEPT : rgb_color(color::black) {}
|
||||||
rgb rgb_color;
|
rgb rgb_color;
|
||||||
terminal_color term_color;
|
terminal_color term_color;
|
||||||
} value;
|
} value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user