Skip to content

Commit

Permalink
Remove std::reinterpret_pointer_cast as it is not available on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Manga authored and Felipe Manga committed Dec 16, 2023
1 parent 1f56616 commit 4cab2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/with_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Handle {

template<typename Type>
Handle(const std::shared_ptr<Type*>& ptr) :
ref{std::reinterpret_pointer_cast<void*>(ptr)},
ref{std::shared_ptr<void*>(ptr, reinterpret_cast<void**>(ptr.get()))},
typeHash{typeid(Type).hash_code()}
{}

Expand Down

0 comments on commit 4cab2a3

Please sign in to comment.