From 33faa8e355dc47a126790f1ea3e52d1813aedc69 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 12 Jul 2018 17:39:48 -0400 Subject: support array type in smart pointers --- include/salticidae/type.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/salticidae/type.h') diff --git a/include/salticidae/type.h b/include/salticidae/type.h index edf38a6..d5834a5 100644 --- a/include/salticidae/type.h +++ b/include/salticidae/type.h @@ -54,13 +54,16 @@ template<> inline uint16_t letoh(uint16_t x) { return le16toh(x); } template<> inline uint32_t letoh(uint32_t x) { return le32toh(x); } template<> inline uint64_t letoh(uint64_t x) { return le64toh(x); } +template +using void_t = void; + template struct is_ranged : std::false_type {}; template struct is_ranged().begin()), - decltype(std::declval().end())>> : std::true_type {}; + void_t().begin()), + decltype(std::declval().end())>> : std::true_type {}; } -- cgit v1.2.3