Is your feature request related to a problem? Please describe.
Some platforms, particularly embedded ones, may not implement or have a limited heap. Or it may be advantageous to implement a memory pool. In such cases, it may be appropriate to allow custom smart pointers allocated from a circular buffer, memory pools and the like. (Maybe, we can do this ourselves too)
Describe the solution you'd like
In UnaryExpression and BinaryExpression, we add yet another template template parameter for the type of the smart pointer which defaults to unique_ptr.
Describe alternatives you've considered
Letting it be limits ourselves to platforms that implement the unique_ptr.
Is your feature request related to a problem? Please describe.
Some platforms, particularly embedded ones, may not implement or have a limited heap. Or it may be advantageous to implement a memory pool. In such cases, it may be appropriate to allow custom smart pointers allocated from a circular buffer, memory pools and the like. (Maybe, we can do this ourselves too)
Describe the solution you'd like
In
UnaryExpressionandBinaryExpression, we add yet another template template parameter for the type of the smart pointer which defaults tounique_ptr.Describe alternatives you've considered
Letting it be limits ourselves to platforms that implement the
unique_ptr.