From 8f35aa7a84c0c2cee45e5b3f588f6cfa9da4a516 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 5 Sep 2018 10:54:12 -0700 Subject: [PATCH] Simplify UntaggedType --- include/jni/tagging.hpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/jni/tagging.hpp b/include/jni/tagging.hpp index 5fb71e7..2009895 100644 --- a/include/jni/tagging.hpp +++ b/include/jni/tagging.hpp @@ -284,19 +284,7 @@ namespace jni } template < class T > - struct UntaggedTypeTraits - { - using Type = decltype(Untag(std::declval())); - }; - - template <> - struct UntaggedTypeTraits - { - using Type = void; - }; - - template < class T > - using UntaggedType = typename UntaggedTypeTraits::Type; + using UntaggedType = decltype(Untag(std::declval())); template < class T >