Skip to content

Commit 1f92f8a

Browse files
committed
Remove noexcept
1 parent 8668639 commit 1f92f8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/fmt/color.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ class text_style {
266266
FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
267267
: set_foreground_color(), set_background_color(), ems(em) {}
268268

269-
FMT_CONSTEXPR_DECL
270-
text_style &operator|=(const text_style &rhs) FMT_NOEXCEPT {
269+
FMT_CONSTEXPR text_style &operator|=(const text_style &rhs) {
271270
if (!set_foreground_color) {
272271
set_foreground_color = rhs.set_foreground_color;
273272
foreground_color = rhs.foreground_color;
@@ -292,11 +291,11 @@ class text_style {
292291
}
293292

294293
friend FMT_CONSTEXPR
295-
text_style operator|(text_style lhs, const text_style &rhs) FMT_NOEXCEPT {
294+
text_style operator|(text_style lhs, const text_style &rhs) {
296295
return lhs |= rhs;
297296
}
298297

299-
FMT_CONSTEXPR text_style &operator&=(const text_style &rhs) FMT_NOEXCEPT {
298+
FMT_CONSTEXPR text_style &operator&=(const text_style &rhs) {
300299
if (!set_foreground_color) {
301300
set_foreground_color = rhs.set_foreground_color;
302301
foreground_color = rhs.foreground_color;
@@ -321,7 +320,7 @@ class text_style {
321320
}
322321

323322
friend FMT_CONSTEXPR
324-
text_style operator&(text_style lhs, const text_style &rhs) FMT_NOEXCEPT {
323+
text_style operator&(text_style lhs, const text_style &rhs) {
325324
return lhs &= rhs;
326325
}
327326

@@ -390,7 +389,8 @@ namespace internal {
390389

391390
template <typename Char>
392391
struct ansi_color_escape {
393-
FMT_CONSTEXPR ansi_color_escape(internal::color_type text_color, const char * esc) FMT_NOEXCEPT {
392+
FMT_CONSTEXPR ansi_color_escape(internal::color_type text_color,
393+
const char * esc) FMT_NOEXCEPT {
394394
// If we have a terminal color, we need to output another escape code
395395
// sequence.
396396
if (!text_color.is_rgb) {

0 commit comments

Comments
 (0)