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

Make vtbackend::Function::operator()(Args...) constexpr to return a compile-time string literal #1634

Open
christianparpart opened this issue Oct 9, 2024 · 0 comments
Labels
code health Code quality related topics. good first issue Good for newcomers performance Performance issues or improvements

Comments

@christianparpart
Copy link
Member

We tend to use Function-API to construct VT sequences from a way better maintainable high level view. But this function is currently runtime-only, and it would just make sense to return a compile time string iff the input parameters are all known at compile time already.

Required knowledge: Only advanced C++ template meta programming
Reference: src/vtbackend/Functions.h
Signature to adapt:

    template <typename... Args>
    std::string operator()(Args&&... parameters) const
@christianparpart christianparpart added good first issue Good for newcomers code health Code quality related topics. performance Performance issues or improvements labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Code quality related topics. good first issue Good for newcomers performance Performance issues or improvements
Projects
None yet
Development

No branches or pull requests

1 participant