Elizabeta
Hi thank you for you reply. This is straightforward solution , but how to the same without using variadic templates. I am using vs2010 and it doesn't support them
Please keep some of the post you're answering to in yours, so as to provide context. I can deduce you refer to one of my first two solutions (the third does not use variadic args), but which in particular is lost in the process. Check http://www.boost.org/community/policy.html#quoting for useful info on Boost posting guidelines. As for not using variadic args, simply replace typename... Args with as many template args the index specifier takes (3 for ordered and ranked indices, 4 for hashed indices, 1 for sequenced and random access indices). Joaquín M López Muñoz Telefónica