Closed
Description
Emscripten embind docs keep saying that passing around raw pointers is illegal because of memory ownership issues.
But why should I still fight the embind if I know what am I doing and I do want to pass around a pointer? Isn't this is what AllowedRawPointer policy for?
emscripten/system/include/emscripten/wire.h
Line 126 in d4b9951
Why this is not implemented as:
template<typename T>
struct TypeID<AllowedRawPointer<T>> {
static constexpr TYPEID get() {
return TypeID<int>::get();
}
};
How is the current implementation of AllowedRawPointer supposed to work at all?