|
From: | Stephen Smith |
Subject: | Re: [pooma-dev] Using template template parameters in new code ok? |
Date: | Wed, 20 Nov 2002 09:23:30 -0700 |
Rather than write: template <template <class T> class X> class A { //... X<int> myFunctor; }; We would define a requirement for an external traits-like class and use a tag: template <class X> class A { //... MyFunctor<X,int> myFunctor; }; You'll find patterns like this all over POOMA. Stephen At 07:15 AM 11/20/2002 -0800, Jeffrey Oldham wrote:
Richard Guenther wrote:Hi! I wonder wether using template template parameters in new code is ok? I didnt find any existing code in pooma using this C++ feature, maybe not without reason? Thanks for clarifying, Richard.In the past, some C++ compilers did not correctly handle template template parameters, but I guess that is no longer the case. May be James Crotinger can provide a little history on any decisions?Thanks, Jeffrey D. Oldham address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |