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
cfcafcc2
Commit
cfcafcc2
authored
May 05, 2020
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inconsistent type detection (#1662)
parent
3a52c6ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
include/fmt/core.h
include/fmt/core.h
+8
-3
No files found.
include/fmt/core.h
View file @
cfcafcc2
...
@@ -1208,13 +1208,16 @@ FMT_CONSTEXPR basic_format_arg<Context> make_arg(const T& value) {
...
@@ -1208,13 +1208,16 @@ FMT_CONSTEXPR basic_format_arg<Context> make_arg(const T& value) {
return
arg
;
return
arg
;
}
}
template
<
bool
IS_PACKED
,
typename
Context
,
typename
T
,
// The type template parameter is there to avoid an ODR violation when using
// a fallback formatter in one translation unit and an implicit conversion in
// another (not recommended).
template
<
bool
IS_PACKED
,
typename
Context
,
type
,
typename
T
,
FMT_ENABLE_IF
(
IS_PACKED
)>
FMT_ENABLE_IF
(
IS_PACKED
)>
inline
value
<
Context
>
make_arg
(
const
T
&
val
)
{
inline
value
<
Context
>
make_arg
(
const
T
&
val
)
{
return
arg_mapper
<
Context
>
().
map
(
val
);
return
arg_mapper
<
Context
>
().
map
(
val
);
}
}
template
<
bool
IS_PACKED
,
typename
Context
,
typename
T
,
template
<
bool
IS_PACKED
,
typename
Context
,
type
,
type
name
T
,
FMT_ENABLE_IF
(
!
IS_PACKED
)>
FMT_ENABLE_IF
(
!
IS_PACKED
)>
inline
basic_format_arg
<
Context
>
make_arg
(
const
T
&
value
)
{
inline
basic_format_arg
<
Context
>
make_arg
(
const
T
&
value
)
{
return
make_arg
<
Context
>
(
value
);
return
make_arg
<
Context
>
(
value
);
...
@@ -1348,7 +1351,9 @@ class format_arg_store
...
@@ -1348,7 +1351,9 @@ class format_arg_store
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
basic_format_args
<
Context
>
(
*
this
),
basic_format_args
<
Context
>
(
*
this
),
#endif
#endif
data_
{
internal
::
make_arg
<
is_packed
,
Context
>
(
args
)...}
{
data_
{
internal
::
make_arg
<
is_packed
,
Context
,
internal
::
mapped_type_constant
<
Args
,
Context
>::
value
>
(
args
)...}
{
}
}
};
};
...
...
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