debug: remove overly complicated specialisation of validator
This commit is contained in:
parent
97f64490cf
commit
90244c5347
23
debug.hpp
23
debug.hpp
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user