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
1653244c
Commit
1653244c
authored
Jun 04, 2019
by
mocabe
Committed by
Victor Zverovich
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation issue on VS2019 (#1186) (#1191)
parent
d54e64b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
include/fmt/core.h
include/fmt/core.h
+3
-2
include/fmt/format-inl.h
include/fmt/format-inl.h
+2
-1
include/fmt/format.h
include/fmt/format.h
+1
-1
No files found.
include/fmt/core.h
View file @
1653244c
...
...
@@ -204,9 +204,10 @@ FMT_BEGIN_NAMESPACE
template
<
bool
B
,
class
T
=
void
>
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
//
An enable_if helper
to be used in template parameters which results in much
//
enable_if helpers
to be used in template parameters which results in much
// shorter symbols: https://godbolt.org/z/sWw4vP.
#define FMT_ENABLE_IF(...) enable_if_t<__VA_ARGS__, int> = 0
// Also include fix for VS2019 compilation issue (see #1140 and #1186).
#define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
namespace
internal
{
...
...
include/fmt/format-inl.h
View file @
1653244c
...
...
@@ -674,7 +674,8 @@ template <int GRISU_VERSION> struct grisu_shortest_handler {
}
};
template
<
typename
Double
,
enable_if_t
<
sizeof
(
Double
)
==
sizeof
(
uint64_t
),
int
>
>
template
<
typename
Double
,
enable_if_t
<
(
sizeof
(
Double
)
==
sizeof
(
uint64_t
)),
int
>
>
FMT_API
bool
grisu_format
(
Double
value
,
buffer
<
char
>&
buf
,
int
precision
,
unsigned
options
,
int
&
exp
)
{
FMT_ASSERT
(
value
>=
0
,
"value is negative"
);
...
...
include/fmt/format.h
View file @
1653244c
...
...
@@ -2246,7 +2246,7 @@ FMT_CONSTEXPR bool do_check_format_string(basic_string_view<Char> s,
}
template
<
typename
...
Args
,
typename
S
,
enable_if_t
<
is_compile_string
<
S
>
::
value
,
int
>>
enable_if_t
<
(
is_compile_string
<
S
>
::
value
)
,
int
>>
void
check_format_string
(
S
format_str
)
{
typedef
typename
S
::
char_type
char_t
;
FMT_CONSTEXPR_DECL
bool
invalid_format
=
...
...
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