i cannot make the class as template because in my case T is the thing that is going to vary. (i want to use boost matrices as T.) THe selection of pasticular type of boost matrix will depend upon the tun time conditions.
i dont think tht u can append the vector variable like tht
but if i m able to guess ur functionality then u can be better using array of vectors or vector of vectors. Then u can access the sub(contained) vectors like a[0], a[1] and so on. If u can clarify more on ur problem (or requirement) then may be we can help further.
I m having a problem with templates. A per C++ std says i cant use override template virtual functions. in other words virtual functions cant be templates due to some vtable size issues. Now i want to simulate it somehow. I read in some other posts that it is somehow possible throg visitor pattern but i m unable to get it done. My intended code is posted below. can somebody give me a workaround to get this functionality.A ny help is appreciated. I...
Leave a comment: