From: Dan Gohman (gohmandj_at_[hidden])
Date: 2001-12-10 00:04:23
On Sun, Dec 09, 2001 at 10:11:33PM -0500, Jeremy Siek wrote:
> Which reminds me, could we get selectNth added to the Boost.Functional
> library as well?
The get function for Boost's tuples is 0-indexed, so the English wording
``Nth element'' would refer to element that get<N - 1> returns, which
isn't what was intended.
Tuples already have their own namespace; perhaps boost::tuples::select
would be a good name. Since it would have an int template paramater,
the user would write select<N, ....>, which seems clear.
-- Dan Gohman gohmandj_at_[hidden]
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk