Template Template Template Parameter
-
Template Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
-
Template Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
My eyes! :~
-
Template Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
Yep! You're very close to the boundary that separate the use from the abuse!
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
Template Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
Our company WEB filter blocks different sites, showing the reason of this. Once I tried to open one of Andrei Alexandrescu C++ articles, and it was blocked with the following reason: Category - Porno Looking at Template Template Template parameters, I think, maybe the filter was right...
-
Our company WEB filter blocks different sites, showing the reason of this. Once I tried to open one of Andrei Alexandrescu C++ articles, and it was blocked with the following reason: Category - Porno Looking at Template Template Template parameters, I think, maybe the filter was right...
Ahahahahahahah! :thumbsup:
-
Our company WEB filter blocks different sites, showing the reason of this. Once I tried to open one of Andrei Alexandrescu C++ articles, and it was blocked with the following reason: Category - Porno Looking at Template Template Template parameters, I think, maybe the filter was right...
Alex Fr wrote:
Looking at Template Template Template parameters, I think, maybe the filter was right...
:thumbsup: thats a good one! but dont get it wrong on Alexandrescu <- he is great Template Template Parameter are "ok" what i did here with Template Template Template Parameter (say that 10 times fast) was just a little joke^^
-
Template Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
-
with many many partial specializations, that would be something for the Coding Horrors :laugh:
-
Yep! You're very close to the boundary that separate the use from the abuse!
2 bugs found. > recompile ... 65534 bugs found. :doh:
Emilio Garavaglia wrote:
You're very close to the boundary that separate the use from the abuse!
And no call has been made yet on which side he is.
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy -
Emilio Garavaglia wrote:
You're very close to the boundary that separate the use from the abuse!
And no call has been made yet on which side he is.
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchyi really dont know how to add this to bling h.p. and im trying every i can think of. can u help?:confused: