Help with tuples - repeated members
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
On Jul 12, 2004, at 4:17 PM, John.Wismar@autozone.com wrote:
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?
Why is it that you can't use boost::array
participants (2)
-
Doug Gregor
-
John.Wismar@autozone.com