Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
89c4b1aa
Commit
89c4b1aa
authored
Nov 13, 2021
by
Charless Milette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build issues under C++11
parent
6ff1b830
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
include/spdlog/common.h
include/spdlog/common.h
+6
-0
include/spdlog/details/fmt_helper.h
include/spdlog/details/fmt_helper.h
+1
-1
include/spdlog/fmt/bin_to_hex.h
include/spdlog/fmt/bin_to_hex.h
+1
-1
No files found.
include/spdlog/common.h
View file @
89c4b1aa
...
@@ -55,9 +55,15 @@
...
@@ -55,9 +55,15 @@
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#if defined(_MSC_VER) && (_MSC_VER < 1900)
# define SPDLOG_NOEXCEPT _NOEXCEPT
# define SPDLOG_NOEXCEPT _NOEXCEPT
# define SPDLOG_CONSTEXPR
# define SPDLOG_CONSTEXPR
# define SPDLOG_CONSTEXPR_FUNC
#else
#else
# define SPDLOG_NOEXCEPT noexcept
# define SPDLOG_NOEXCEPT noexcept
# define SPDLOG_CONSTEXPR constexpr
# define SPDLOG_CONSTEXPR constexpr
# if __cplusplus >= 201402L
# define SPDLOG_CONSTEXPR_FUNC constexpr
# else
# define SPDLOG_CONSTEXPR_FUNC
# endif
#endif
#endif
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) || defined(__clang__)
...
...
include/spdlog/details/fmt_helper.h
View file @
89c4b1aa
...
@@ -34,7 +34,7 @@ template<typename T>
...
@@ -34,7 +34,7 @@ template<typename T>
inline
void
append_int
(
T
n
,
memory_buf_t
&
dest
)
inline
void
append_int
(
T
n
,
memory_buf_t
&
dest
)
{
{
// Buffer should be large enough to hold all digits (digits10 + 1) and a sign
// Buffer should be large enough to hold all digits (digits10 + 1) and a sign
SPDLOG_CONSTEXPR
auto
BUF_SIZE
=
std
::
numeric_limits
<
T
>::
digits10
+
2
;
SPDLOG_CONSTEXPR
const
auto
BUF_SIZE
=
std
::
numeric_limits
<
T
>::
digits10
+
2
;
char
buf
[
BUF_SIZE
];
char
buf
[
BUF_SIZE
];
auto
[
ptr
,
ec
]
=
std
::
to_chars
(
buf
,
buf
+
BUF_SIZE
,
n
,
10
);
auto
[
ptr
,
ec
]
=
std
::
to_chars
(
buf
,
buf
+
BUF_SIZE
,
n
,
10
);
...
...
include/spdlog/fmt/bin_to_hex.h
View file @
89c4b1aa
...
@@ -96,7 +96,7 @@ struct formatter<spdlog::details::dump_info<T>, char>
...
@@ -96,7 +96,7 @@ struct formatter<spdlog::details::dump_info<T>, char>
// parse the format string flags
// parse the format string flags
template
<
typename
ParseContext
>
template
<
typename
ParseContext
>
SPDLOG_CONSTEXPR
auto
parse
(
ParseContext
&
ctx
)
->
decltype
(
ctx
.
begin
())
SPDLOG_CONSTEXPR
_FUNC
auto
parse
(
ParseContext
&
ctx
)
->
decltype
(
ctx
.
begin
())
{
{
auto
it
=
ctx
.
begin
();
auto
it
=
ctx
.
begin
();
while
(
it
!=
ctx
.
end
()
&&
*
it
!=
'}'
)
while
(
it
!=
ctx
.
end
()
&&
*
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