Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
1f92f8a9
Commit
1f92f8a9
authored
Dec 15, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove noexcept
parent
8668639a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/fmt/color.h
include/fmt/color.h
+6
-6
No files found.
include/fmt/color.h
View file @
1f92f8a9
...
...
@@ -266,8 +266,7 @@ class text_style {
FMT_CONSTEXPR
text_style
(
emphasis
em
=
emphasis
())
FMT_NOEXCEPT
:
set_foreground_color
(),
set_background_color
(),
ems
(
em
)
{}
FMT_CONSTEXPR_DECL
text_style
&
operator
|=
(
const
text_style
&
rhs
)
FMT_NOEXCEPT
{
FMT_CONSTEXPR
text_style
&
operator
|=
(
const
text_style
&
rhs
)
{
if
(
!
set_foreground_color
)
{
set_foreground_color
=
rhs
.
set_foreground_color
;
foreground_color
=
rhs
.
foreground_color
;
...
...
@@ -292,11 +291,11 @@ class text_style {
}
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
;
}
FMT_CONSTEXPR
text_style
&
operator
&=
(
const
text_style
&
rhs
)
FMT_NOEXCEPT
{
FMT_CONSTEXPR
text_style
&
operator
&=
(
const
text_style
&
rhs
)
{
if
(
!
set_foreground_color
)
{
set_foreground_color
=
rhs
.
set_foreground_color
;
foreground_color
=
rhs
.
foreground_color
;
...
...
@@ -321,7 +320,7 @@ class text_style {
}
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
;
}
...
...
@@ -390,7 +389,8 @@ namespace internal {
template
<
typename
Char
>
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
// sequence.
if
(
!
text_color
.
is_rgb
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment