Skip to content

Commit

Permalink
Simplify UntaggedType<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Sep 5, 2018
1 parent f2c4e51 commit 8f35aa7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/jni/tagging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,7 @@ namespace jni
}

template < class T >
struct UntaggedTypeTraits
{
using Type = decltype(Untag(std::declval<T>()));
};

template <>
struct UntaggedTypeTraits<void>
{
using Type = void;
};

template < class T >
using UntaggedType = typename UntaggedTypeTraits<T>::Type;
using UntaggedType = decltype(Untag(std::declval<T>()));


template < class T >
Expand Down

0 comments on commit 8f35aa7

Please sign in to comment.