Remove noexcept

This commit is contained in:
Victor Zverovich 2018-12-15 06:41:32 -08:00
parent 8668639ae2
commit 1f92f8a9d8

View File

@ -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 {
} }
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 {
} }
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 {
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) {