m5stack / M5EPD

M5Paper Arduino Library
MIT License
167 stars 53 forks source link

Closes #29: Disallow copy / assignment constructor #30

Closed grundprinzip closed 1 year ago

grundprinzip commented 3 years ago

The M5EPD_Canvas class defines an assignment constructor (wihout defining a copy constructor). The original goal was to avoid ownership issues because of dangling sprites. However, from a user perspective it is not clear that this behvior is not desired.

To force the user not to use this way of constructing a canvas, this patch deletes the copy and assignment constructor.