c++11 - Aliasing a template template parameters -


is possible use using keyword aliasing template template parameter?

template <template<int> class t> struct foo {     using type = t; }; 

thanks

using (or typedef) provide alias type, never higher-kinded type (template template parameter). can templatize alias on int:

template <template<int> class t> struct foo {     template <int x>     using type = t<x>; }; 

Comments

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -