
DE wrote:
matrix<double> m(3, 3); //dynamically allocated matrix<double, 3, 3> static_m; //statically allocated I was speaking of the expression class. I also advice you to not multiply tempalte parameters like that as it quickly becomes hard to maintain.
again, my point is: since you need to implement policies themselves somewhere and their relationship and behavor (possibly by specializing some templates) why not to do that by defining distinct types with proper interfaces?
Because you'll need a combinatorial number of such thing.
it's a very simple, Yes stable, Yes scalable No easily maintainable design
No
and more: it is easier to understand for users
Not more than my solution. -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35