From 2ed1f9e9cf40e7b71a6692abc7dbfdf049edb12c Mon Sep 17 00:00:00 2001 From: Nicolas Lesser Date: Wed, 12 Dec 2018 17:40:12 +0100 Subject: [PATCH] Add constexpr/noexcept for union ctor. --- include/fmt/color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/color.h b/include/fmt/color.h index 2fdfb864..5e4f8194 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -252,7 +252,7 @@ struct color_type { value.term_color = term_color; } union color_union { - color_union() : rgb_color(color::black) {} + FMT_CONSTEXPR color_union() FMT_NOEXCEPT : rgb_color(color::black) {} rgb rgb_color; terminal_color term_color; } value;