Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SPDLOG_TO_VERSION to compare spdlog version
You can use SPDLOG_VERSION to select the latest spdlog features where available while falling back to older implementations otherwise. Using SPDLOG_TO_VERSION() for the value to compare with is recommended. for Example: ```c++ void sink_it_(const details::log_msg &msg) override { #if SPDLOG_VERSION < SPDLOG_TO_VERSION(1,4,0) fmt::memory_buffer formatted; #else memory_buf_t formatted; #endif sinks::base_sink<Mutex>::formatter_->format(msg, formatted); // bala bala... } ```
- Loading branch information