Hi Alfredo,
Anything in Boost for that?
No. It can't be done, because a function object doesn't necessarily have a unique arity.
Right, but if you tell us what you would do *if you had* such value, maybe we can help with a proper design.
I need to know whether a function object is callable with a given set of arguments. Obviously, the compiler will automatically let me know if it's not. Yet, the place where the compiler points my clients to is likely not to be suitable for them. So, the idea is to stop them at an appropriate point in my own code (perhaps with some appropriate error message and commenting) before the compiler nags about the unsuitability of the (function object) instantiation. It will perhaps be a good starting point if I can check it before further the actual template instantiation of the function object. Any ideas now please? TIA, --Hossein