Skip to content

Allow Custom "Smart Pointers" #139

Description

@matthew-mccall

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.

Metadata

Metadata

Labels

No labels
No labels

Fields

No fields configured for Feature.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions