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

[FR] Variadic signatures with external c++ #1348

Open
andrjohns opened this issue Aug 17, 2023 · 1 comment
Open

[FR] Variadic signatures with external c++ #1348

andrjohns opened this issue Aug 17, 2023 · 1 comment
Labels
feature New feature or request

Comments

@andrjohns
Copy link
Contributor

andrjohns commented Aug 17, 2023

Currently the only way to specify/use a variadic signature in Stan is by adding it to stanc3, but it would be great for prototyping if it was possible to specify a variadic signature for an external c++ function.

In other words, for the forward declaration:

functions {
  real testing(real x, ...);
}

To transpile to something like:

template <typename T, typename... TArgs, require_stan_scalar_t<T>* = nullptr>
T testing(const T& x, const TArgs&... args);
@andrjohns andrjohns added the feature New feature or request label Aug 17, 2023
@WardBrian
Copy link
Member

This would be a bit tricky to implement I think. What use case do you have in mind?

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

No branches or pull requests

2 participants