From 7636f1f65981237d850fc22fcc234ac7d3255509 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 14 Jul 2021 14:33:45 +0300 Subject: [PATCH] revert some changes made by mistake --- CMakeLists.txt | 2 +- example/example.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be362788..d7fc940f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ endif () # Compiler config # --------------------------------------------------------------------------------------- if (NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 20) + set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) endif () diff --git a/example/example.cpp b/example/example.cpp index a5abc273..0649a65e 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -23,14 +23,13 @@ void custom_flags_example(); #include "spdlog/spdlog.h" #include "spdlog/cfg/env.h" // support for loading levels from the environment variable -#include "spdlog/fmt/compile.h" int main(int, char *[]) { // Log levels can be loaded from argv/env using "SPDLOG_LEVEL" load_levels_example(); - spdlog::info(FMT_COMPILE("Welcome to spdlog version {}.{}.{} {:d} !"), SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH, "SS"); + spdlog::info("Welcome to spdlog version {}.{}.{} !", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH); spdlog::warn("Easy padding in numbers like {:08d}", 12); spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);