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
5bafcb43
Commit
5bafcb43
authored
Jun 03, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments about things broken in MSVC
parent
15302425
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
include/fmt/core.h
include/fmt/core.h
+5
-3
No files found.
include/fmt/core.h
View file @
5bafcb43
...
...
@@ -204,9 +204,9 @@ FMT_BEGIN_NAMESPACE
template
<
bool
B
,
class
T
=
void
>
using
enable_if_t
=
typename
std
::
enable_if
<
B
,
T
>::
type
;
//
enable_if helpers
to be used in template parameters which results in much
// shorter symbols: https://godbolt.org/z/sWw4vP.
//
Also include fix for VS2019 compilation issue
(see #1140 and #1186).
//
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
//
to workaround a bug in MSVC 2019
(see #1140 and #1186).
#define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
namespace
internal
{
...
...
@@ -587,6 +587,8 @@ dummy_string_view to_string_view(...);
using
fmt
::
v5
::
to_string_view
;
// Specifies whether S is a string type convertible to fmt::basic_string_view.
// It should be a constexpr function but MSVC 2017 fails to compile it in
// enable_if.
template
<
typename
S
>
struct
is_string
:
std
::
integral_constant
<
...
...
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