Skip to content

Commit 615715b

Browse files
committed
Allow conversions for Cast's object parameter
1 parent 634bcbd commit 615715b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/jni/object.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ namespace jni
191191
}
192192
};
193193

194-
template < class OutTagType, class InTagType >
195-
Local<Object<OutTagType>> Cast(JNIEnv& env, const Class<OutTagType>& clazz, const Object<InTagType>& object)
194+
template < class OutTagType, class T >
195+
Local<Object<OutTagType>> Cast(JNIEnv& env, const Class<OutTagType>& clazz, const T& object)
196196
{
197197
if (!object.IsInstanceOf(env, clazz))
198198
{

0 commit comments

Comments
 (0)