Commit 811b79b5 authored by Praetorius, Simon's avatar Praetorius, Simon

some simple cleanup of the type_traits

parent 7ee95763
Pipeline #5175 passed with stage
in 47 minutes and 2 seconds
......@@ -13,14 +13,14 @@ namespace AMDiS
*
* Note: This is a backport of c++20 std::remove_cvref
**/
template< class T >
template <class T>
struct remove_cvref
{
using type = std::remove_cv_t<std::remove_reference_t<T>>;
};
/// Helper alias template for \ref remove_cvref
template< class T >
template <class T>
using remove_cvref_t = typename remove_cvref<T>::type;
namespace Impl
......@@ -116,8 +116,6 @@ namespace AMDiS
}
template <bool... b>
using enable_if_all_t
= std::enable_if_t<std::is_same_v<std::integer_sequence<bool,true,b...>,
std::integer_sequence<bool,b...,true>>>;
using enable_if_all_t = std::enable_if_t<(b &&...)>;
} // end namespace AMDiS
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment