I got the following template
template<class T, class U, bool(*function)(T)> struct foo { /.../ } How do I create a specialization for it? The spcialization should be like the following
template<> struct foo<my_type_1, my_type_2,/*how do I handle this parameter?*/> My main question is how do I handle the parameter of the funcion?
thanks in advance
https://stackoverflow.com/questions/65730307/specialization-of-a-template-who-has-a-parameter January 15, 2021 at 11:57AM
没有评论:
发表评论