EDIT: Changed example code to code from my project that doesn't work. I'm writing code in C++, learning templates and got stuck with some problem. There's a cla
I have two methods inside a class (mask_im and save_im) that I must include in several other classes in separate modules. How can I create a class with those tw
I have two methods inside a class (mask_im and save_im) that I must include in several other classes in separate modules. How can I create a class with those tw
In python I can add a method to a class with the @classmethod decorator. Is there a similar decorator to add a property to a class? I can be