简体   繁体   中英

Calling a variadic function template through a std::function

I have a variadic template function declared as follows:

template <typename ...Arguments>
double pricer(Arguments... params);

With specializations for different argument types.

What's the correct syntax for calling the template specializations through a single std::function "wrapper"? Is it possible?

您不能将模板函数与std::function绑定在一起,只能在其中存储模板函数的特定实例。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM