Fix logging for older compilers

This commit is contained in:
Sebastian Messmer 2018-05-18 22:29:52 -07:00
parent b715e18a59
commit b49435f405
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ namespace cpputils {
struct INFO_TYPE {};
struct DEBUG_TYPE {};
constexpr ERROR_TYPE ERR;
constexpr WARN_TYPE WARN;
constexpr INFO_TYPE INFO;
constexpr DEBUG_TYPE DEBUG;
constexpr ERROR_TYPE ERR {};
constexpr WARN_TYPE WARN {};
constexpr INFO_TYPE INFO {};
constexpr DEBUG_TYPE DEBUG {};
inline void setLogger(std::shared_ptr<spdlog::logger> newLogger) {
logger().setLogger(newLogger);