
Ok, this version works with C++11, but the call is slightly different: using sig_foo = boost::signature_of<decltype(&foo)>; using sig_baz = boost::signature_of<decltype(&bar::baz)>; and boost::argument_size_v<decltype(&foo)> boost::argument_size_v<decltype(&bar::baz)> But there is still one problem: if a parameter is const it is not recognized. Do you have an idea? Am 12.09.20 um 20:50 schrieb Peter Dimov via Boost:
Gero Peterhoff wrore:
Hi Peter, i implemented signature_of similar to the function_traits. This is more flexible, but requires C++20.
There's no need for C++20 here, 11 is enough. See also https://github.com/boostorg/type_traits/issues/147 that I just opened for other reasons.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost