
Andy Little wrote:
Note that the feed_function doesnt check the arity ( or number of elements) of
^^^ Is there a way to do this with Boost.Tuple ? If there is I was too blind to find it reading the docs and taking a brief look at its source...
the tuple. However may be this could be useful. Perhaps one could add a range parameter specifying which range of args in the tuple to use.
Boost.Tuple is a very basic tuples implementation. Fusion (which is still work in progress and lives in the spirit folder) is way more flexibile (for this particular case you can define a view from a pair of iterators).
IMO Its daft that there are traits for variables and not traits for functions, which this library addresses. I reckon that there are many potential uses of this library, especially in FP style programming. Perhaps this library will help to open them up.
FWIW I change my vote. I vote to accept the library into boost.
Great! And thanks for your ideas & code! Regards, Tobias