Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Embind raw pointers #12818

Copy link
Copy link
Closed
Closed
Copy link
@hb3p8

Description

@hb3p8
Issue body actions

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?

return LightTypeID<T*>::get();

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.