How do you define a signature like boost :: function?

How to determine the signature of boost ::?

In boost :: signals2 there is a type of boost :: signals2 :: signature_type , but in boost :: function it is not.

Example: http://liveworkspace.org/code/727a1e51cb829bab743d922bd7f1b03a

Thank.

+3
source share
1 answer

You can use boost::function<...>::result_typeand boost::function<...>::arg1_type, boost::function<...>::arg2_typeetc.

See the man page.

If you want everything to be functional, you can use the synthesis functions in Boost.FunctionTypes.

+3
source

Source: https://habr.com/ru/post/1784781/


All Articles