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
8c1b22ba
Commit
8c1b22ba
authored
Jun 01, 2021
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround a gcc 9.1 bug (#2334)
parent
2dba1cfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
include/fmt/format-inl.h
include/fmt/format-inl.h
+1
-2
include/fmt/format.h
include/fmt/format.h
+1
-2
No files found.
include/fmt/format-inl.h
View file @
8c1b22ba
...
@@ -148,8 +148,7 @@ template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
...
@@ -148,8 +148,7 @@ template <> FMT_FUNC int count_digits<4>(detail::fallback_uintptr n) {
}
}
#if __cplusplus < 201703L
#if __cplusplus < 201703L
template
<
typename
T
>
template
<
typename
T
>
constexpr
const
char
basic_data
<
T
>::
digits
[][
2
];
constexpr
const
typename
basic_data
<
T
>::
digit_pair
basic_data
<
T
>::
digits
[];
template
<
typename
T
>
constexpr
const
char
basic_data
<
T
>::
hex_digits
[];
template
<
typename
T
>
constexpr
const
char
basic_data
<
T
>::
hex_digits
[];
template
<
typename
T
>
constexpr
const
char
basic_data
<
T
>::
signs
[];
template
<
typename
T
>
constexpr
const
char
basic_data
<
T
>::
signs
[];
template
<
typename
T
>
constexpr
const
unsigned
basic_data
<
T
>::
prefixes
[];
template
<
typename
T
>
constexpr
const
unsigned
basic_data
<
T
>::
prefixes
[];
...
...
include/fmt/format.h
View file @
8c1b22ba
...
@@ -875,8 +875,7 @@ template <typename T = void> struct basic_data {
...
@@ -875,8 +875,7 @@ template <typename T = void> struct basic_data {
static
const
uint64_t
log10_2_significand
=
0x4d104d427de7fbcc
;
static
const
uint64_t
log10_2_significand
=
0x4d104d427de7fbcc
;
// GCC generates slightly better code for pairs than chars.
// GCC generates slightly better code for pairs than chars.
using
digit_pair
=
char
[
2
];
FMT_API
static
constexpr
const
char
digits
[][
2
]
=
{
FMT_API
static
constexpr
const
digit_pair
digits
[]
=
{
{
'0'
,
'0'
},
{
'0'
,
'1'
},
{
'0'
,
'2'
},
{
'0'
,
'3'
},
{
'0'
,
'4'
},
{
'0'
,
'5'
},
{
'0'
,
'0'
},
{
'0'
,
'1'
},
{
'0'
,
'2'
},
{
'0'
,
'3'
},
{
'0'
,
'4'
},
{
'0'
,
'5'
},
{
'0'
,
'6'
},
{
'0'
,
'7'
},
{
'0'
,
'8'
},
{
'0'
,
'9'
},
{
'1'
,
'0'
},
{
'1'
,
'1'
},
{
'0'
,
'6'
},
{
'0'
,
'7'
},
{
'0'
,
'8'
},
{
'0'
,
'9'
},
{
'1'
,
'0'
},
{
'1'
,
'1'
},
{
'1'
,
'2'
},
{
'1'
,
'3'
},
{
'1'
,
'4'
},
{
'1'
,
'5'
},
{
'1'
,
'6'
},
{
'1'
,
'7'
},
{
'1'
,
'2'
},
{
'1'
,
'3'
},
{
'1'
,
'4'
},
{
'1'
,
'5'
},
{
'1'
,
'6'
},
{
'1'
,
'7'
},
...
...
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