Allowing formatting non-copyable ranges. (#3290)

This commit is contained in:
Barry Revzin
2023-01-27 14:29:57 -06:00
committed by GitHub
parent 70db193f09
commit 05e3a9233a
2 changed files with 6 additions and 4 deletions

View File

@@ -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>