Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected a type specifier? #37

Open
KemerDev opened this issue Apr 21, 2024 · 0 comments
Open

Expected a type specifier? #37

KemerDev opened this issue Apr 21, 2024 · 0 comments

Comments

@KemerDev
Copy link

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant