Commit 1f92f8a9 authored by Victor Zverovich's avatar Victor Zverovich

Remove noexcept

parent 8668639a
...@@ -266,8 +266,7 @@ class text_style { ...@@ -266,8 +266,7 @@ class text_style {
FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT FMT_CONSTEXPR text_style(emphasis em = emphasis()) FMT_NOEXCEPT
: set_foreground_color(), set_background_color(), ems(em) {} : set_foreground_color(), set_background_color(), ems(em) {}
FMT_CONSTEXPR_DECL FMT_CONSTEXPR text_style &operator|=(const text_style &rhs) {
text_style &operator|=(const text_style &rhs) FMT_NOEXCEPT {
if (!set_foreground_color) { if (!set_foreground_color) {
set_foreground_color = rhs.set_foreground_color; set_foreground_color = rhs.set_foreground_color;
foreground_color = rhs.foreground_color; foreground_color = rhs.foreground_color;
...@@ -292,11 +291,11 @@ class text_style { ...@@ -292,11 +291,11 @@ class text_style {
} }
friend FMT_CONSTEXPR friend FMT_CONSTEXPR
text_style operator|(text_style lhs, const text_style &rhs) FMT_NOEXCEPT { text_style operator|(text_style lhs, const text_style &rhs) {
return lhs |= rhs; return lhs |= rhs;
} }
FMT_CONSTEXPR text_style &operator&=(const text_style &rhs) FMT_NOEXCEPT { FMT_CONSTEXPR text_style &operator&=(const text_style &rhs) {
if (!set_foreground_color) { if (!set_foreground_color) {
set_foreground_color = rhs.set_foreground_color; set_foreground_color = rhs.set_foreground_color;
foreground_color = rhs.foreground_color; foreground_color = rhs.foreground_color;
...@@ -321,7 +320,7 @@ class text_style { ...@@ -321,7 +320,7 @@ class text_style {
} }
friend FMT_CONSTEXPR friend FMT_CONSTEXPR
text_style operator&(text_style lhs, const text_style &rhs) FMT_NOEXCEPT { text_style operator&(text_style lhs, const text_style &rhs) {
return lhs &= rhs; return lhs &= rhs;
} }
...@@ -390,7 +389,8 @@ namespace internal { ...@@ -390,7 +389,8 @@ namespace internal {
template <typename Char> template <typename Char>
struct ansi_color_escape { struct ansi_color_escape {
FMT_CONSTEXPR ansi_color_escape(internal::color_type text_color, const char * esc) FMT_NOEXCEPT { FMT_CONSTEXPR ansi_color_escape(internal::color_type text_color,
const char * esc) FMT_NOEXCEPT {
// If we have a terminal color, we need to output another escape code // If we have a terminal color, we need to output another escape code
// sequence. // sequence.
if (!text_color.is_rgb) { if (!text_color.is_rgb) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment