I've been playing with Boost's tuples library, but I'm having some trouble
working through a wrinkle:
I have some routines that use tuple<int>, tuple, etc., up to
tuple. I'd like to be able to declare these
objects using an alternative notation, along the lines of:
tuple_clone, tuple_clone, tuple_clone, etc.
The objective would be to allow me to write a function template that looked
something like this:
template <int N>
tuple_clone fn(tuple_clone t)
{
tuple_clone ret;
ret.get_head() = getValue();
ret.get_tail() = t;
return ret;
}
Each time I try to write tuple_clone, though, I end up stumped. Is it
possible to write something like this, while leveraging the tuples library?
Or is there a different approach I ought to look into?
Thanks!
--------------------------------
John Wismar
john.wismar@autozone.com
------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.