Fix logging for older compilers

This commit is contained in:
Sebastian Messmer 2018-05-18 22:29:52 -07:00
parent b715e18a59
commit b49435f405

View File

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