Subj : Re: openMP + C++ template question To : (Usenet) From : John Date : Wed Apr 20 2005 12:59 pm Dear Allan, dinsert uses metaprogramming, not to calculate a value but a type that is used to do a different task inside dinsert. Depending on the value of D function(type<1>) , function(type <2>) and so on are called from inside dinsert. Now function(xxx) can't take a runtime type, it has to be a compile time type, otherwise the compiler starts complaining. And hence I can not use a for loop to call these functions. I am sorry if I was not clear. Please let me know if I've left any other clarifications vague still. --j [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] .