Commit 1e781429 authored by gabi's avatar gabi

fixed noexcept in visual studio

parent 3014087b
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment