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
6d5670fd
Commit
6d5670fd
authored
Jun 13, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
da0d6d04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
include/spdlog/common.h
include/spdlog/common.h
+12
-6
No files found.
include/spdlog/common.h
View file @
6d5670fd
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
#include "spdlog/tweakme.h"
#include "spdlog/tweakme.h"
#include <algorithm>
#include <atomic>
#include <atomic>
#include <chrono>
#include <chrono>
#include <stdexcept>
#include <functional>
#include <functional>
#include <algorithm>
#include <initializer_list>
#include <initializer_list>
#include <memory>
#include <memory>
#include <stdexcept>
#include <string>
#include <string>
#include <unordered_map>
#include <unordered_map>
...
@@ -147,11 +147,18 @@ enum class pattern_time_type
...
@@ -147,11 +147,18 @@ enum class pattern_time_type
class
spdlog_ex
:
public
std
::
runtime_error
class
spdlog_ex
:
public
std
::
runtime_error
{
{
public:
public:
explicit
spdlog_ex
(
const
std
::
string
&
msg
)
:
runtime_error
(
msg
){}
explicit
spdlog_ex
(
const
std
::
string
&
msg
)
spdlog_ex
(
const
std
::
string
&
msg
,
int
last_errno
)
:
runtime_error
(
msg
),
last_errno_
(
last_errno
){}
:
runtime_error
(
msg
)
{
}
spdlog_ex
(
const
std
::
string
&
msg
,
int
last_errno
)
:
runtime_error
(
msg
)
,
last_errno_
(
last_errno
)
{
}
const
char
*
what
()
const
SPDLOG_NOEXCEPT
override
const
char
*
what
()
const
SPDLOG_NOEXCEPT
override
{
{
if
(
last_errno_
)
if
(
last_errno_
)
{
{
fmt
::
memory_buffer
buf
;
fmt
::
memory_buffer
buf
;
std
::
string
msg
(
runtime_error
::
what
());
std
::
string
msg
(
runtime_error
::
what
());
...
@@ -166,7 +173,6 @@ public:
...
@@ -166,7 +173,6 @@ public:
private:
private:
int
last_errno_
{
0
};
int
last_errno_
{
0
};
};
};
//
//
...
...
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