From cae43ffef5d82f8fe4329a2290d0bb578445c8a7 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 13 May 2016 16:10:12 +0300 Subject: [PATCH] fixed issue #199 (_MSC_VER update for vs 2015 to use noexcept instead of throw()) --- include/spdlog/common.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 55669278..21565053 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -19,13 +19,16 @@ #include -//visual studio does not support noexcept yet -#ifndef _MSC_VER -#define SPDLOG_NOEXCEPT noexcept -#else + +//visual studio upto 2013 does not support noexcept +#if defined(_MSC_VER) && (_MSC_VER < 1900) #define SPDLOG_NOEXCEPT throw() +#else +#define SPDLOG_NOEXCEPT noexcept #endif + + namespace spdlog {