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
718f60ac
Commit
718f60ac
authored
Apr 08, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shadowing warning (#1105) and clang format
parent
aeb5ad3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
include/fmt/format.h
include/fmt/format.h
+8
-3
No files found.
include/fmt/format.h
View file @
718f60ac
...
...
@@ -753,7 +753,8 @@ template <typename T = void> struct FMT_API basic_data {
extern
template
struct
basic_data
<
void
>;
#endif
typedef
basic_data
<>
data
;
// This is a struct rather than a typedef to avoid shadowing warnings in gcc.
struct
data
:
basic_data
<>
{};
#ifdef FMT_BUILTIN_CLZLL
// Returns the number of decimal digits in n. Leading zeros are not counted
...
...
@@ -2621,7 +2622,9 @@ template <typename Range> class basic_writer {
num_writer
{
abs_value
,
size
,
sep
});
}
FMT_NORETURN
void
on_error
()
{
FMT_THROW
(
format_error
(
"invalid type specifier"
));
}
FMT_NORETURN
void
on_error
()
{
FMT_THROW
(
format_error
(
"invalid type specifier"
));
}
};
// Writes a formatted integer.
...
...
@@ -2858,7 +2861,9 @@ struct float_spec_handler {
if
(
type
==
'A'
)
upper
=
true
;
}
FMT_NORETURN
void
on_error
()
{
FMT_THROW
(
format_error
(
"invalid type specifier"
));
}
FMT_NORETURN
void
on_error
()
{
FMT_THROW
(
format_error
(
"invalid type specifier"
));
}
};
template
<
typename
Range
>
...
...
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