Allowing formatting non-copyable ranges. (#3290)

This commit is contained in:
Barry Revzin authored and GitHub committed 2023-01-27 12:29:57 -08:00
1 parent 70db193f09
commit 05e3a9233a
2 files changed
+6 -4

No files matched your search

+3 -1
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>