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
e7ab49c9
Commit
e7ab49c9
authored
Sep 20, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extern tempalate declarations
parent
5496491a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
include/spdlog/details/backtracer.h
include/spdlog/details/backtracer.h
+2
-0
include/spdlog/sinks/base_sink.h
include/spdlog/sinks/base_sink.h
+6
-0
src/file_sinks.cpp
src/file_sinks.cpp
+1
-7
src/spdlog.cpp
src/spdlog.cpp
+8
-1
No files found.
include/spdlog/details/backtracer.h
View file @
e7ab49c9
...
...
@@ -43,4 +43,6 @@ public:
#ifdef SPDLOG_HEADER_ONLY
#include "backtracer-inl.h"
#else
extern
template
class
spdlog
::
details
::
circular_q
<
spdlog
::
details
::
log_msg_buffer
>;
#endif
\ No newline at end of file
include/spdlog/sinks/base_sink.h
View file @
e7ab49c9
...
...
@@ -13,6 +13,7 @@
#include "spdlog/details/log_msg.h"
#include "spdlog/sinks/sink.h"
namespace
spdlog
{
namespace
sinks
{
template
<
typename
Mutex
>
...
...
@@ -43,4 +44,9 @@ protected:
#ifdef SPDLOG_HEADER_ONLY
#include "base_sink-inl.h"
#else
#include "spdlog/details/null_mutex.h"
#include <mutex>
extern
template
class
spdlog
::
sinks
::
base_sink
<
std
::
mutex
>;
extern
template
class
spdlog
::
sinks
::
base_sink
<
spdlog
::
details
::
null_mutex
>;
#endif
src/file_sinks.cpp
View file @
e7ab49c9
...
...
@@ -6,16 +6,10 @@
#endif
#include <mutex>
#include "spdlog/sinks/base_sink.h"
#include "spdlog/details/null_mutex.h"
#include "spdlog/details/file_helper-inl.h"
#include "spdlog/sinks/base_sink-inl.h"
template
class
spdlog
::
sinks
::
base_sink
<
std
::
mutex
>;
template
class
spdlog
::
sinks
::
base_sink
<
spdlog
::
details
::
null_mutex
>;
#include "spdlog/sinks/basic_file_sink-inl.h"
template
class
spdlog
::
sinks
::
basic_file_sink
<
std
::
mutex
>;
template
class
spdlog
::
sinks
::
basic_file_sink
<
spdlog
::
details
::
null_mutex
>;
...
...
src/spdlog.cpp
View file @
e7ab49c9
...
...
@@ -15,8 +15,15 @@
#include "spdlog/details/log_msg_buffer-inl.h"
#include "spdlog/logger-inl.h"
#include "spdlog/sinks/sink-inl.h"
#include "spdlog/sinks/base_sink-inl.h"
#include "spdlog/details/null_mutex.h"
#include <mutex>
// 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
spdlog
::
details
::
circular_q
<
spdlog
::
details
::
log_msg_buffer
>;
template
class
spdlog
::
sinks
::
base_sink
<
std
::
mutex
>;
template
class
spdlog
::
sinks
::
base_sink
<
spdlog
::
details
::
null_mutex
>;
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