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
e461f3db
Commit
e461f3db
authored
Jul 02, 2021
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor consitency and comment tweaks
parent
54014e42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
include/fmt/core.h
include/fmt/core.h
+6
-7
No files found.
include/fmt/core.h
View file @
e461f3db
...
@@ -317,9 +317,9 @@ FMT_BEGIN_NAMESPACE
...
@@ -317,9 +317,9 @@ FMT_BEGIN_NAMESPACE
FMT_MODULE_EXPORT_BEGIN
FMT_MODULE_EXPORT_BEGIN
// Implementations of enable_if_t and other metafunctions for older systems.
// Implementations of enable_if_t and other metafunctions for older systems.
template
<
bool
B
,
class
T
=
void
>
template
<
bool
B
,
typename
T
=
void
>
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
template
<
bool
B
,
class
T
,
class
F
>
template
<
bool
B
,
typename
T
,
typename
F
>
using
conditional_t
=
typename
std
::
conditional
<
B
,
T
,
F
>::
type
;
using
conditional_t
=
typename
std
::
conditional
<
B
,
T
,
F
>::
type
;
template
<
bool
B
>
using
bool_constant
=
std
::
integral_constant
<
bool
,
B
>
;
template
<
bool
B
>
using
bool_constant
=
std
::
integral_constant
<
bool
,
B
>
;
template
<
typename
T
>
template
<
typename
T
>
...
@@ -333,11 +333,10 @@ struct monostate {
...
@@ -333,11 +333,10 @@ struct monostate {
constexpr
monostate
()
{}
constexpr
monostate
()
{}
};
};
// Eliminate "unused variable" warnings on all compilers. The
// Suppress "unused variable" warnings with the method described in
// `(void)var` method does not work on many intel compilers. This is
// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/.
// from Herb Sutter, "Shutting up compiler warnings",
// (void)var does not work on many Intel compilers.
// https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/
template
<
typename
...
T
>
FMT_CONSTEXPR
void
ignore_unused
(
const
T
&
...)
{}
template
<
class
...
Ts
>
FMT_CONSTEXPR
void
ignore_unused
(
const
Ts
&
...)
{}
// An enable_if helper to be used in template parameters which results in much
// An enable_if helper to be used in template parameters which results in much
// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are needed
...
...
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