Skip to content

Commit 7f8060d

Browse files
authored
fix: Compatibility with external fmtlib 11.1.1 (#3312)
Include fmtlib's `xchar` header to include `fmt::basic_format_string`. Otherwise, compilation with an external fmtlib 11.1.1 fails with ``` In file included from include/spdlog/spdlog.h:12: include/spdlog/common.h:369:49: error: no template named 'basic_format_string' in namespace 'fmt'; did you mean 'std::basic_format_string'? 369 | inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) { | ^~~~~ ``` Signed-off-by: Christian Blichmann <[email protected]>
1 parent 276ee5f commit 7f8060d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/spdlog/fmt/fmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@
2727
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
2828
#include <fmt/core.h>
2929
#include <fmt/format.h>
30+
#include <fmt/xchar.h>
3031
#endif

0 commit comments

Comments
 (0)