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
5496491a
Commit
5496491a
authored
Sep 20, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extern template declarations
parent
53ca5b28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/spdlog/common.h
include/spdlog/common.h
+4
-6
src/spdlog.cpp
src/spdlog.cpp
+2
-0
No files found.
include/spdlog/common.h
View file @
5496491a
...
...
@@ -100,12 +100,7 @@ using log_clock = std::chrono::system_clock;
using
sink_ptr
=
std
::
shared_ptr
<
sinks
::
sink
>
;
using
sinks_init_list
=
std
::
initializer_list
<
sink_ptr
>
;
using
err_handler
=
std
::
function
<
void
(
const
std
::
string
&
err_msg
)
>
;
template
<
typename
T
>
using
basic_string_view_t
=
fmt
::
basic_string_view
<
T
>
;
using
string_view_t
=
basic_string_view_t
<
char
>
;
using
string_view_t
=
fmt
::
basic_string_view
<
char
>
;
using
memory_buf_t
=
fmt
::
basic_memory_buffer
<
char
,
250
>
;
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
...
...
@@ -248,4 +243,7 @@ std::unique_ptr<T> make_unique(Args &&... args)
#ifdef SPDLOG_HEADER_ONLY
#include "common-inl.h"
#else
extern
template
class
fmt
::
basic_string_view
<
char
>;
extern
template
class
fmt
::
basic_memory_buffer
<
char
,
250
>;
#endif
src/spdlog.cpp
View file @
5496491a
...
...
@@ -18,3 +18,5 @@
// template instantiate logger constructor with sinks init list
template
spdlog
::
logger
::
logger
(
std
::
string
name
,
sinks_init_list
::
iterator
begin
,
sinks_init_list
::
iterator
end
);
template
class
fmt
::
basic_string_view
<
char
>;
template
class
fmt
::
basic_memory_buffer
<
char
,
250
>;
\ No newline at end of file
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