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
0827ec5a
Commit
0827ec5a
authored
Feb 28, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation errors on gcc 4.6
parent
4d35f941
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/fmt/format.h
include/fmt/format.h
+3
-3
No files found.
include/fmt/format.h
View file @
0827ec5a
...
...
@@ -232,7 +232,7 @@ typename Allocator::value_type *allocate(Allocator& alloc, std::size_t n) {
#if __cplusplus >= 201103L || FMT_MSC_VER >= 1700
return
std
::
allocator_traits
<
Allocator
>::
allocate
(
alloc
,
n
);
#else
return
this
->
allocate
(
n
);
return
alloc
.
allocate
(
n
);
#endif
}
}
// namespace internal
...
...
@@ -2002,7 +2002,7 @@ class format_string_checker {
public:
explicit
FMT_CONSTEXPR
format_string_checker
(
basic_string_view
<
Char
>
format_str
,
ErrorHandler
eh
)
:
context_
(
format_str
,
eh
)
{}
:
arg_id_
(
-
1
),
context_
(
format_str
,
eh
)
{}
FMT_CONSTEXPR
void
on_text
(
const
Char
*
,
const
Char
*
)
{}
...
...
@@ -2041,7 +2041,7 @@ class format_string_checker {
// Format specifier parsing function.
typedef
const
Char
*
(
*
parse_func
)(
parse_context_type
&
);
int
arg_id_
=
-
1
;
int
arg_id_
;
parse_context_type
context_
;
parse_func
parse_funcs_
[
NUM_ARGS
>
0
?
NUM_ARGS
:
1
]
=
{
&
parse_format_specs
<
Args
,
parse_context_type
>
...
...
...
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