Skip to content

Expected a type specifier? #37

@KemerDev

Description

@KemerDev

In the pyplot.h file i get "Expected a type specifier error"

struct DECL_STRUCT_ATTR PyPlot { public:
1

and also in the file common.h i get "Expected a type specifier error"
2

`namespace matplotlibcpp17 {

/**

  • @brief A base class for python wrapper classes
    **/
    struct DECL_STRUCT_ATTR BaseWrapper {
    public:
    pybind11::object unwrap() const { return self; }

protected:
pybind11::object self;
};

/**

  • @brief A proxy class for pybind object
    **/
    struct ObjectWrapper : public BaseWrapper {
    public:
    ObjectWrapper(const pybind11::object &object) { self = object; }
    ObjectWrapper(pybind11::object &&object) { self = std::move(object); }
    };

} // namespace matplotlibcpp17`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions