Subject: Re: [boost] Suggested change to type_traits/function_traits
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-07-14 05:01:17
Joseph Garvin wrote:
> I only just now subscribed to this list so forgive me if this has been
> suggested and rejected before.
> Currently function_traits<F> exposes the argument types for F as
> individual typedefs, arg1_type, arg2_type, etc. I think this could be
> made more powerful with two changes:
> 1. First, change it to be 0 indexed, arg0_type should be first. This
> is more consistent with the rest of boost and C++ in general.
IIRC, Boost.Bind, Boost.Lambda and Boost.Spirit uses 1-based argument
indexing for their placeholders.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk