Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-templated expression container? #108

Open
whart222 opened this issue Oct 30, 2023 · 1 comment
Open

Non-templated expression container? #108

whart222 opened this issue Oct 30, 2023 · 1 comment

Comments

@whart222
Copy link

Is there a standard way to store a FastAD expression in a "generic" expression object?

The BaseExpr class is templated on the derived type, which means it's not suitable for use in a class that can store any FastAD expression.

Maybe a variant of the std::any concept?

@whart222
Copy link
Author

Alternatively, I'm wondering if there is a generic expression type that would support caching FastAD expressions in a std::vector class. Even if it wasn't as opaque as std::any, something like that seems a useful utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant