Commit d28e8073 authored by Felix Gruber's avatar Felix Gruber

[cleanup] use is_same from std::

parent 2e05323e
......@@ -32,7 +32,7 @@ namespace Dune {
template<typename T, typename It, typename Arg, typename... Args>
void assign_reference_pack_to_shared_ptr_array_unpack(It it, Arg&& arg, Args&&... args)
{
static_assert(is_same<T,typename std::remove_const<typename std::remove_reference<Arg>::type>::type>::value,"type mismatch during array conversion");
static_assert(std::is_same<T,typename std::remove_const<typename std::remove_reference<Arg>::type>::type>::value,"type mismatch during array conversion");
*it = convert_arg(std::forward<Arg>(arg));
assign_reference_pack_to_shared_ptr_array_unpack<T>(++it,std::forward<Args>(args)...);
}
......@@ -52,7 +52,7 @@ namespace Dune {
template<typename T, typename It, typename Arg, typename... Args>
void assign_shared_ptr_pack_to_shared_ptr_array_unpack(It it, Arg&& arg, Args&&... args)
{
static_assert(is_same<T,typename std::remove_reference<Arg>::type::element_type>::value,"type mismatch during array conversion");
static_assert(std::is_same<T,typename std::remove_reference<Arg>::type::element_type>::value,"type mismatch during array conversion");
*it = arg;
assign_shared_ptr_pack_to_shared_ptr_array_unpack<T>(++it,args...);
}
......@@ -73,7 +73,7 @@ namespace Dune {
//! Helper struct to make constructor enabling mechanism in PowerNode more readable.
template<typename PowerNode, typename T, std::size_t k>
struct AssertPowerNodeChildCount
: public std::enable_if<is_same<
: public std::enable_if<std::is_same<
typename PowerNode::ChildType,
T>::value &&
PowerNode::CHILDREN == k,
......
......@@ -70,7 +70,7 @@ namespace Dune {
lookup_type
>::type type;
static_assert((!is_same<type,void>::value), "Unable to find valid transformation descriptor");
static_assert((!std::is_same<type,void>::value), "Unable to find valid transformation descriptor");
};
#endif // DOXYGEN
......
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