debug: remove overly complicated specialisation of validator

This commit is contained in:
Danny Robson 2018-04-23 15:39:20 +10:00
parent 97f64490cf
commit 90244c5347

View File

@ -566,29 +566,6 @@ namespace util::debug {
}
//-------------------------------------------------------------------------
template <
template<size_t, typename...> class T,
size_t S,
typename ...Args
>
struct validator<T<S,Args...>> {
static bool is_valid (const T<S,Args...>&) noexcept;
};
//-------------------------------------------------------------------------
template <
template<size_t,typename...> class T,
size_t S,
typename ...Args
>
bool is_valid (const T<S,Args...> &v) noexcept
{
return validator<T<S,Args...>>::is_valid (v);
}
//-------------------------------------------------------------------------
// forwarding validator from a pointer type to a reference type.
//