Skip to content

Provide interface for constructing smart pointer instances from Julia #371

@omus

Description

@omus

It would be nice to be able to construct things like std::shared_ptrs (ala. make_shared<>()) from Julia. Possibly the Julia interface for this could be SharedPtr{World}(StdString(...)).

On the C++ side this could internally be implemented via make_shared and the wrapper code could look like:

mod.add_type<World>("World")
    .constructor<const std::string &>()
    .apply_shared<const std::string &>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions