Allowing formatting non-copyable ranges. (#3290)
This commit is contained in:
1 parent
70db193f09
commit
05e3a9233a
2 files changed
+6
-4
No files matched your search
@@ -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