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
607779cc
Commit
607779cc
authored
Aug 13, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
micro optimization in log_msg constructor
parent
da2af6ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
log_msg.h
include/spdlog/details/log_msg.h
+4
-3
No files found.
include/spdlog/details/log_msg.h
View file @
607779cc
...
...
@@ -16,17 +16,18 @@ namespace details {
struct
log_msg
{
log_msg
()
=
default
;
log_msg
(
const
std
::
string
*
loggers_name
,
level
::
level_enum
lvl
)
:
logger_name
(
loggers_name
)
,
level
(
lvl
)
{
#ifndef SPDLOG_NO_DATETIME
time
=
os
::
now
();
,
time
(
os
::
now
())
#endif
#ifndef SPDLOG_NO_THREAD_ID
thread_id
=
os
::
thread_id
();
,
thread_id
(
os
::
thread_id
())
#endif
{
}
log_msg
(
const
log_msg
&
other
)
=
delete
;
...
...
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