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
1e781429
Commit
1e781429
authored
Dec 20, 2014
by
gabi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed noexcept in visual studio
parent
3014087b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
include/spdlog/common.h
include/spdlog/common.h
+11
-2
No files found.
include/spdlog/common.h
View file @
1e781429
...
...
@@ -27,12 +27,21 @@
#include<initializer_list>
#include<chrono>
//visual studio does not support noexcept yet
#ifndef _MSC_VER
#define SPDLOG_NOEXCEPT noexcept
#else
#define SPDLOG_NOEXCEPT
#endif
namespace
spdlog
{
class
formatter
;
namespace
sinks
{
class
sink
;}
namespace
sinks
{
class
sink
;
}
// Common types across the lib
using
log_clock
=
std
::
chrono
::
system_clock
;
...
...
@@ -72,7 +81,7 @@ class spdlog_ex : public std::exception
{
public:
spdlog_ex
(
const
std
::
string
&
msg
)
:
_msg
(
msg
)
{}
const
char
*
what
()
const
noexcept
override
const
char
*
what
()
const
SPDLOG_NOEXCEPT
override
{
return
_msg
.
c_str
();
}
...
...
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