szhorvat/LTemplate

Feature ideas

szhorvat opened this issue · 0 comments

  • Free functions
  • Allow adding library init and cleanup code. Currently, this is partially possible through constructors/destructors, but we have no control over destruction order
  • Allow constructor arguments
  • RAII supports for array-like types, such as TensorRef, ImageRef, etc. so that their free() member function can be called even if the function throws an exception. Rarely needed, already included as LTAutoFree private class.
  • Generate expression deleter function (like TriangleDelete in TriangleLink)