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
eaaaec99
Commit
eaaaec99
authored
Jul 30, 2020
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround a bug in msvc
parent
ccf8561c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/fmt/format.h
include/fmt/format.h
+5
-5
No files found.
include/fmt/format.h
View file @
eaaaec99
...
@@ -725,17 +725,17 @@ class FMT_API format_error : public std::runtime_error {
...
@@ -725,17 +725,17 @@ class FMT_API format_error : public std::runtime_error {
namespace
detail
{
namespace
detail
{
template
<
typename
T
>
template
<
typename
T
>
constexpr
bool
is_signed
()
{
using
is_signed
=
return
std
::
numeric_limits
<
T
>::
is_signed
||
std
::
is_same
<
T
,
int128_t
>
();
std
::
integral_constant
<
bool
,
std
::
numeric_limits
<
T
>::
is_signed
||
}
std
::
is_same
<
T
,
int128_t
>::
value
>
;
// Returns true if value is negative, false otherwise.
// Returns true if value is negative, false otherwise.
// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
// Same as `value < 0` but doesn't produce warnings if T is an unsigned type.
template
<
typename
T
,
FMT_ENABLE_IF
(
is_signed
<
T
>
()
)
>
template
<
typename
T
,
FMT_ENABLE_IF
(
is_signed
<
T
>
::
value
)
>
FMT_CONSTEXPR
bool
is_negative
(
T
value
)
{
FMT_CONSTEXPR
bool
is_negative
(
T
value
)
{
return
value
<
0
;
return
value
<
0
;
}
}
template
<
typename
T
,
FMT_ENABLE_IF
(
!
is_signed
<
T
>
()
)
>
template
<
typename
T
,
FMT_ENABLE_IF
(
!
is_signed
<
T
>
::
value
)
>
FMT_CONSTEXPR
bool
is_negative
(
T
)
{
FMT_CONSTEXPR
bool
is_negative
(
T
)
{
return
false
;
return
false
;
}
}
...
...
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