Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-08-19 21:29:41 +0200
committerMartin Hořeňovský2021-08-19 21:29:41 +0200
commit7ff54ebc06bb3decb5d5cea0a8ca5361625e9200 (patch)
tree46eedb082d5742797856b637c4e93a4426146745 /src
parentca8546efc6ef916baba611d0a69ebfc88bf0129a (diff)
downloadcatch3-7ff54ebc06bb3decb5d5cea0a8ca5361625e9200.tar.gz
Add _t suffix typedef for internal traits
Diffstat (limited to 'src')
-rw-r--r--src/catch2/catch_tostring.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/catch2/catch_tostring.hpp b/src/catch2/catch_tostring.hpp
index 8ea00aeb..e82552bf 100644
--- a/src/catch2/catch_tostring.hpp
+++ b/src/catch2/catch_tostring.hpp
@@ -481,18 +481,18 @@ namespace Catch {
using type = void;
};
+ template <typename... Ts>
+ using void_type_t = typename void_type<Ts...>::type;
+
template <typename T, typename = void>
- struct is_range_impl : std::false_type {
- };
+ struct is_range_impl : std::false_type {};
template <typename T>
- struct is_range_impl<T, typename void_type<decltype(begin(std::declval<T>()))>::type> : std::true_type {
- };
+ struct is_range_impl<T, void_type_t<decltype(begin(std::declval<T>()))>> : std::true_type {};
} // namespace Detail
template <typename T>
- struct is_range : Detail::is_range_impl<T> {
- };
+ struct is_range : Detail::is_range_impl<T> {};
#if defined(_MANAGED) // Managed types are never ranges
template <typename T>