开发者

Can templates such as boost::mpl::integral_c be registered with Boost.Typeof?

开发者 https://www.devze.com 2023-01-22 02:07 出处:网络
boost::mpl::integral_c is declared as: template <typename T, T N> struct integral_c; Is it possible to register this sort of template with Boost.Typeof:

boost::mpl::integral_c is declared as:

template <typename T, T N>
struct integral_c;

Is it possible to register this sort of template with Boost.Typeof:


N is a template parameter so it can only be a numeric type, therefore it only allows numeric types of T, the sort for which you can have template parameters.

Note that template parameters can be member pointer-to-function types or member pointer-to-data types but these are also considered types.

0

精彩评论

暂无评论...
验证码 换一张
取 消