5 Jul
2007
5 Jul
'07
1:17 p.m.
I want to define custom new and delete operators for tuples. The usual way to do it would be, I presume, to derive from a base class and define these operators in the derived class. However, doing this for tuples would require me to provide all possible templated derivations for up to 10 arguments, including constructors. (And then maybe even defining new make_tuple functions). Is there a better way to accomplish this task?