Enable join on msvc
This commit is contained in:
parent
24d249b0b4
commit
a7ae5666a0
@ -140,6 +140,10 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if FMT_HAS_GXX_CXX11 || FMT_MSC_VER >= 1600
|
||||||
|
# define FMT_USE_TRAILING_RETURN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
||||||
// https://github.com/fmtlib/fmt/issues/519
|
// https://github.com/fmtlib/fmt/issues/519
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
@ -3221,7 +3225,7 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
|
|||||||
return arg_join<It, wchar_t>(begin, end, sep);
|
return arg_join<It, wchar_t>(begin, end, sep);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FMT_HAS_GXX_CXX11
|
#if FMT_USE_TRAILING_RETURN
|
||||||
template <typename Range>
|
template <typename Range>
|
||||||
auto join(const Range &range, string_view sep)
|
auto join(const Range &range, string_view sep)
|
||||||
-> arg_join<decltype(std::begin(range)), char> {
|
-> arg_join<decltype(std::begin(range)), char> {
|
||||||
|
Loading…
Reference in New Issue
Block a user