Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Slattery <kslattery@gmail.com>2022-05-13 02:55:08 +0300
committerKevin Slattery <kslattery@gmail.com>2022-05-13 02:55:08 +0300
commitd3dee23e6c59624deadd350ca72e51eeb94ddbc5 (patch)
tree6d7a819921845b7f07b25d82c6546506a56819d9 /include
parent5f5e70e96eaf8a0c3c74aaf4c5bbe39fe7f3dea1 (diff)
Remove new macro, update example with correct way to specify fmt lib namespace when fmt_lib namespace alias cannot be used.
Diffstat (limited to 'include')
-rw-r--r--include/spdlog/common.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/spdlog/common.h b/include/spdlog/common.h
index ae51c745..9ab886f5 100644
--- a/include/spdlog/common.h
+++ b/include/spdlog/common.h
@@ -126,13 +126,6 @@ using sink_ptr = std::shared_ptr<sinks::sink>;
using sinks_init_list = std::initializer_list<sink_ptr>;
using err_handler = std::function<void(const std::string &err_msg)>;
#ifdef SPDLOG_USE_STD_FORMAT
-# ifndef FMTLIB_BEGIN_NAMESPACE
-# define FMTLIB_BEGIN_NAMESPACE \
- namespace std {
-# define FMTLIB_END_NAMESPACE \
- }
-# endif
-
namespace fmt_lib = std;
using string_view_t = std::string_view;
@@ -153,16 +146,7 @@ template<typename... Args>
using wformat_string_t = std::wstring_view;
# endif
# define SPDLOG_BUF_TO_STRING(x) x
-
#else // use fmt lib instead of std::format
-
-# ifndef FMTLIB_BEGIN_NAMESPACE
-# define FMTLIB_BEGIN_NAMESPACE \
- namespace fmt {
-# define FMTLIB_END_NAMESPACE \
- }
-# endif
-
namespace fmt_lib = fmt;
using string_view_t = fmt::basic_string_view<char>;