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

如何知道MessageBus中传入函数的所有参数类型 #33

Open
stallion5632 opened this issue Sep 6, 2020 · 0 comments
Open

如何知道MessageBus中传入函数的所有参数类型 #33

stallion5632 opened this issue Sep 6, 2020 · 0 comments

Comments

@stallion5632
Copy link

我想问如何知道Attach函数的输入函数F的所有形参类型?
Attach函数原型如下:
//注册消息
template
void Attach(F&& f, const string& strTopic="")
{
auto func = to_function(std::forward(f));
Add(strTopic, std::move(func));
}

因为我需要记录这些形参类型,在调用的时候首先尝试进行强制转换。
感谢回复

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