
14 Jul
2010
14 Jul
'10
9:01 a.m.
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. Regards, Johan Nilsson