change fmtlib internal namespace from v7 to v7_lmp to avoid clashes when linking with other fmtlib variants

This commit is contained in:
Axel Kohlmeyer 2020-08-04 19:18:44 -04:00
parent 7294936322
commit d53fc62fb0
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 3 additions and 3 deletions

View File

@ -188,12 +188,12 @@
# define FMT_INLINE_NAMESPACE namespace
# define FMT_END_NAMESPACE \
} \
using namespace v7; \
using namespace v7_lmp; \
}
# endif
# define FMT_BEGIN_NAMESPACE \
namespace fmt { \
FMT_INLINE_NAMESPACE v7 {
FMT_INLINE_NAMESPACE v7_lmp {
#endif
#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
@ -491,7 +491,7 @@ constexpr basic_string_view<typename S::char_type> to_string_view(const S& s) {
namespace detail {
void to_string_view(...);
using fmt::v7::to_string_view;
using fmt::v7_lmp::to_string_view;
// Specifies whether S is a string type convertible to fmt::basic_string_view.
// It should be a constexpr function but MSVC 2017 fails to compile it in