Re: [variadic templates]feature request: n-th element of expansion

2009-11-25 Thread Larry Evans
On 11/19/09 18:28, Larry Evans wrote: On 11/19/09 17:23, Jason Merrill wrote: On 11/17/2009 09:36 AM, Larry Evans wrote: Could g++ provide this feature? How hard would it be to implement. It probably wouldn't be difficult to implement, but I'd want someone to champion the extension with the

Re: [variadic templates]feature request: n-th element of expansion

2009-11-19 Thread Larry Evans
On 11/19/09 17:23, Jason Merrill wrote: On 11/17/2009 09:36 AM, Larry Evans wrote: Could g++ provide this feature? How hard would it be to implement. It probably wouldn't be difficult to implement, but I'd want someone to champion the extension with the C++ committee as well. Have you asked

Re: [variadic templates]feature request: n-th element of expansion

2009-11-19 Thread Jason Merrill
On 11/17/2009 09:36 AM, Larry Evans wrote: Could g++ provide this feature? How hard would it be to implement. It probably wouldn't be difficult to implement, but I'd want someone to champion the extension with the C++ committee as well. Have you asked Doug Gregor what he thinks? I assume th

[variadic templates]feature request: n-th element of expansion

2009-11-17 Thread Larry Evans
As mentioned in a post of comp.std.c++: http://preview.tinyurl.com/yaqvnnq there's a need for some way to get the nth element of a pack expansion. For example, boost::mpl::arg: http://www.boost.org/doc/libs/1_40_0/libs/mpl/doc/refmanual/arg.html wouldn't need the preprocessor for its impl