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
936aba5f
Commit
936aba5f
authored
May 20, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation errors on gcc 4.4
parent
3e3a2774
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/fmt/format.h
include/fmt/format.h
+4
-2
No files found.
include/fmt/format.h
View file @
936aba5f
...
...
@@ -304,7 +304,7 @@ fp operator*(fp x, fp y);
// Compute k such that its cached power c_k = c_k.f * pow(2, c_k.e) satisfies
// min_exponent <= c_k.e + e <= min_exponent + 3.
inline
int
compute_cached_power_index
(
int
e
,
int
min_exponent
)
{
const
expr
double
one_over_log2_10
=
0.30102999566398114
;
// 1 / log2(10)
const
double
one_over_log2_10
=
0.30102999566398114
;
// 1 / log2(10)
return
static_cast
<
int
>
(
std
::
ceil
((
min_exponent
-
e
+
63
)
*
one_over_log2_10
));
}
...
...
@@ -2236,7 +2236,9 @@ void handle_dynamic_spec(
/** The default argument formatter. */
template
<
typename
Range
>
class
arg_formatter
:
public
internal
::
function
<
void
>
,
public
internal
::
arg_formatter_base
<
Range
>
{
public
internal
::
function
<
typename
internal
::
arg_formatter_base
<
Range
>::
iterator
>
,
public
internal
::
arg_formatter_base
<
Range
>
{
private:
typedef
typename
Range
::
value_type
char_type
;
typedef
internal
::
arg_formatter_base
<
Range
>
base
;
...
...
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