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

how about universal reference for variadic template parameters #47

Open
mumbi opened this issue Jun 22, 2024 · 0 comments
Open

how about universal reference for variadic template parameters #47

mumbi opened this issue Jun 22, 2024 · 0 comments

Comments

@mumbi
Copy link

mumbi commented Jun 22, 2024

template <typename... U> void operator()(U && ...u) { if (slot_state::connected() && !slot_state::blocked()) { call_slot(std::forward<U>(u)...); } }

protected: void call_slot(Args ...args) override { func(args...); }

operator() uses universal reference for variadic template parameters.

but call_slot protected function does not.

so we should do not use universal reference for signal wrapper.

how do you think about this?

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