What's this m_bool variable? You've used it twice, but havent defined it anywhere.

And why does setdata need to be templated? If it's only to save you the trouble of writing one setdata for each of the member vectors, it's not worth it. It'll only clutter up your code and make it harder to read for other programmers (and yourself 4 months from now). Make one setdata for each of the member vectors.

We'll need to see some real compilable code to be able to answer your question further. This code doesn't make sense to me...