Prefer _t over ::type form for std type traits

This commit is contained in:
Martin Hořeňovský committed 2021-08-19 00:21:13 +02:00
1 parent 88c27ffaf2
commit edad4d0af7
7 files changed
+13 -17

No files matched your search

+1 -2
View File
@@ -69,8 +69,7 @@ namespace Catch {
template <typename ClassT, typename ReturnT, typename ArgT>
struct UnaryLambdaTraits<ReturnT ( ClassT::* )( ArgT ) const> {
static const bool isValid = true;
using ArgType = typename std::remove_const<
typename std::remove_reference<ArgT>::type>::type;
using ArgType = std::remove_const_t<std::remove_reference_t<ArgT>>;
using ReturnType = ReturnT;
};