[Boost-bugs] [Boost C++ Libraries] #3783: add is_callable_with_args trait

Subject: [Boost-bugs] [Boost C++ Libraries] #3783: add is_callable_with_args trait
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-21 00:22:37


#3783: add is_callable_with_args trait
------------------------------+---------------------------------------------
 Reporter: eric_niebler | Owner: t_schwinger
     Type: Feature Requests | Status: new
Milestone: Boost 1.42.0 | Component: function_types
  Version: Boost 1.41.0 | Severity: Not Applicable
 Keywords: |
------------------------------+---------------------------------------------
 Per this thread:
 [http://old.nabble.com/How-to-detect-if-f%28%29-returns-void-or-not--
 td26757660.html here]

 and the needs of Proto as discussed here:
 [http://www.boost.org/doc/libs/1_41_0/doc/html/proto/appendices.html#boost_proto.appendices.implementation.function_arity
 here]

 as well as a hypothesized use case in Boost.Bind as discussed in the first
 link above, a "is_callable_with_args" function trait would be quite
 useful. It would be a Boolean metafunction that determines whether a
 certain callable type were callable with certain argument types.

 I am attaching to this feature request a simple implementation (ignores
 calling convention on function types), and some simple test cases (needs
 to be fleshed out). Also needs documentation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3783>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC