Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
8107df08
Commit
8107df08
authored
Dec 04, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump bundled fmt to 6.1.1-rc
parent
dc295009
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
core.h
include/spdlog/fmt/bundled/core.h
+4
-5
format.h
include/spdlog/fmt/bundled/format.h
+4
-3
No files found.
include/spdlog/fmt/bundled/core.h
View file @
8107df08
...
...
@@ -15,7 +15,7 @@
#include <type_traits>
// The fmt library version in the form major * 10000 + minor * 100 + patch.
#define FMT_VERSION 6010
0
#define FMT_VERSION 6010
1
#ifdef __has_feature
# define FMT_HAS_FEATURE(x) __has_feature(x)
...
...
@@ -167,9 +167,9 @@
#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
# ifdef FMT_EXPORT
# define FMT_API __
pragma(warning(suppress : 4275)) __
declspec(dllexport)
# define FMT_API __declspec(dllexport)
# elif defined(FMT_SHARED)
# define FMT_API __
pragma(warning(suppress : 4275)) __
declspec(dllimport)
# define FMT_API __declspec(dllimport)
# define FMT_EXTERN_TEMPLATE_API FMT_API
# endif
#endif
...
...
@@ -224,7 +224,7 @@ namespace internal {
// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
template
<
typename
...
Ts
>
struct
void_t_impl
{
using
type
=
void
;
};
void
assert_fail
(
const
char
*
file
,
int
line
,
const
char
*
message
);
FMT_API
void
assert_fail
(
const
char
*
file
,
int
line
,
const
char
*
message
);
#ifndef FMT_ASSERT
# ifdef NDEBUG
...
...
@@ -1206,7 +1206,6 @@ template <typename Context, typename... Args> class format_arg_store {
static
constexpr
unsigned
long
long
types
=
is_packed
?
internal
::
encode_types
<
Context
,
Args
...
>
()
:
internal
::
is_unpacked_bit
|
num_args
;
FMT_DEPRECATED
static
constexpr
unsigned
long
long
TYPES
=
types
;
format_arg_store
(
const
Args
&
...
args
)
:
data_
{
internal
::
make_arg
<
is_packed
,
Context
>
(
args
)...}
{}
...
...
include/spdlog/fmt/bundled/format.h
View file @
8107df08
...
...
@@ -1145,10 +1145,11 @@ template <typename Char> class float_writer {
if
(
specs_
.
format
==
float_format
::
exp
)
{
// Insert a decimal point after the first digit and add an exponent.
*
it
++
=
static_cast
<
Char
>
(
*
digits_
);
if
(
num_digits_
>
1
)
*
it
++
=
decimal_point_
;
it
=
copy_str
<
Char
>
(
digits_
+
1
,
digits_
+
num_digits_
,
it
);
int
num_zeros
=
specs_
.
precision
-
num_digits_
;
if
(
num_zeros
>
0
&&
specs_
.
trailing_zeros
)
bool
trailing_zeros
=
num_zeros
>
0
&&
specs_
.
trailing_zeros
;
if
(
num_digits_
>
1
||
trailing_zeros
)
*
it
++
=
decimal_point_
;
it
=
copy_str
<
Char
>
(
digits_
+
1
,
digits_
+
num_digits_
,
it
);
if
(
trailing_zeros
)
it
=
std
::
fill_n
(
it
,
num_zeros
,
static_cast
<
Char
>
(
'0'
));
*
it
++
=
static_cast
<
Char
>
(
specs_
.
upper
?
'E'
:
'e'
);
return
write_exponent
<
Char
>
(
full_exp
-
1
,
it
);
...
...
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