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
9049f9ae
Commit
9049f9ae
authored
Jul 27, 2021
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ambiguous error in clang13 and c++20
parent
bee3e63e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
include/spdlog/logger.h
include/spdlog/logger.h
+10
-8
No files found.
include/spdlog/logger.h
View file @
9049f9ae
...
@@ -102,6 +102,15 @@ public:
...
@@ -102,6 +102,15 @@ public:
log
(
loc
,
lvl
,
string_view_t
{
msg
});
log
(
loc
,
lvl
,
string_view_t
{
msg
});
}
}
// T cannot be statically converted to niether string_view, neither wstring_view and niether to format string
template
<
class
T
,
typename
std
::
enable_if
<!
std
::
is_convertible
<
const
T
&
,
spdlog
::
string_view_t
>
::
value
&&
!
is_convertible_to_basic_format_string
<
const
T
&>::
value
,
int
>::
type
=
0
>
void
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
T
&
msg
)
{
log
(
loc
,
lvl
,
"{}"
,
msg
);
}
void
log
(
log_clock
::
time_point
log_time
,
source_loc
loc
,
level
::
level_enum
lvl
,
string_view_t
msg
)
void
log
(
log_clock
::
time_point
log_time
,
source_loc
loc
,
level
::
level_enum
lvl
,
string_view_t
msg
)
{
{
bool
log_enabled
=
should_log
(
lvl
);
bool
log_enabled
=
should_log
(
lvl
);
...
@@ -133,13 +142,6 @@ public:
...
@@ -133,13 +142,6 @@ public:
log
(
source_loc
{},
lvl
,
msg
);
log
(
source_loc
{},
lvl
,
msg
);
}
}
// T cannot be statically converted to string_view or wstring_view
template
<
class
T
,
typename
std
::
enable_if
<!
is_convertible_to_basic_format_string
<
T
>
::
value
,
int
>::
type
=
0
>
void
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
T
&
msg
)
{
log
(
loc
,
lvl
,
"{}"
,
msg
);
}
template
<
typename
...
Args
>
template
<
typename
...
Args
>
void
trace
(
fmt
::
format_string
<
Args
...
>
fmt
,
Args
&&
...
args
)
void
trace
(
fmt
::
format_string
<
Args
...
>
fmt
,
Args
&&
...
args
)
{
{
...
...
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