Subj : Re: pthreads with C++ To : comp.lang.c++,comp.programming.threads From : John Date : Tue Apr 19 2005 11:43 am The problem seems to be that I need dinsert::eval(M); call. The type of M depends on D. And I cant do this at runtime. If I write a function that takes both D and M as input, my code gets messed up since then the compiler does not know the type of M at compile time. Thanks for ur help, --j .