(This question has bounty for anyone willing to take a shot)
Hi I have defined overloading template function with container class as arguments
(Here CntrlCls1 = RWTValOrderedVector and CntrlCls2 = RWTPtrSortedVector)
template<Class X> void func(CntrCls1<X>* ){}
template<Class X> void func(CntrCls1<X*>* ){}
template<Class X> void func(CntrCls2<X>*){}
After defining I am calling function as following
func(&ABC);
where ABC is instance of type CntrCls1<*> (i.e. it is a container of pointers)
Now this is compiling just fine on my computer, but when I compile on a different system, for some reason the compiler is trying to instantiate function template with CntrlCls2 parameter, and as a result giving error.
CtrCls1 and CtrCls2 are unrelated containers.
Update: I am using the VS 2008 to build on both the systems so that shouldn't be a problem.
Update1: I tried to recompile after commenting out function template with CtrCls2 parameter Now the compile is trying to instantiate the first function ( i.e. without pointers) :-(