@463035818_is_not_an_ai No, because it is not considered as a best practice by some people, thus can't pass code review. However, what Sebastian said is ok. I can actually use constructors and deconstructors. Moreover, I want to know if there are some other ways, since a class may have many constructors, and a custom constructor will make the class non-trivial. —
calvin 40 secs ago