Skip to content

Commit e50dab9

Browse files
author
Aidan Lee
committed
I don't understand why this is needed
No changes were made in this area, dev haxe + hxcpp also fails to build that test locally for me
1 parent 7fa0fae commit e50dab9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/cpp/Pointer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ class Pointer<void>
350350
template<typename O> inline void set_ref(O val) { }
351351

352352
operator Dynamic () const { return CreateDynamicPointer(ptr); }
353+
template<class T>
354+
operator Pointer<T>() const { return Pointer<T>(static_cast<T*>(ptr)); }
353355
//operator hx::Val () const { return CreateDynamicPointer((void *)ptr); }
354356
operator void * () { return ptr; }
355357
void * get_raw() { return ptr; }

0 commit comments

Comments
 (0)