mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-26 20:30:06 +01:00
Allowing formatting non-copyable ranges. (#3290)
This commit is contained in:
@@ -155,7 +155,9 @@ template <typename T>
|
||||
struct has_mutable_begin_end<
|
||||
T, void_t<decltype(detail::range_begin(std::declval<T>())),
|
||||
decltype(detail::range_end(std::declval<T>())),
|
||||
enable_if_t<std::is_copy_constructible<T>::value>>>
|
||||
// the extra int here is because older versions of MSVC don't
|
||||
// SFINAE properly unless there are distinct types
|
||||
int>>
|
||||
: std::true_type {};
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user