matplotlibcpp17 icon indicating copy to clipboard operation
matplotlibcpp17 copied to clipboard

Expected a type specifier?

Open KemerDev opened this issue 1 year ago • 0 comments

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`

KemerDev avatar Apr 21 '24 17:04 KemerDev