Boost logo

Boost :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-08-06 20:36:47


On Aug 6, 2006, at 7:10 AM, Ion Gaztañaga wrote:
> And what if Values parameter pack is instantiated as a sequence of the
> same type? Should we make tuple<int, int> and array<int, 2> the
> same type?

They should be the same type, but there should be a common interface
that allows one to act on both types in the same way. IIRC, array<>
works with tuple_size, tuple_element, and get, so we already have
that interface.

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk