On Feb 6, 2008 11:18 AM, Rene Rivera <<a href="mailto:grafikrobot@gmail.com">grafikrobot@gmail.com</a>> wrote:<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> You could use the new function_traits library, but that's not in a<br>release yet. Or recreate the type "manually" using the component<br>typedefs in function <<a href="http://boost.org/doc/html/boost/functionN.html" target="_blank">http://boost.org/doc/html/boost/functionN.html</a>>.</blockquote> </div><br>I just created my own quick little class for this:<br><br><span style="font-family: courier new,monospace;"> template< typename t_fun ></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> class FunctionHolder</span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;"> {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> public:</span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;"> typedef t_fun type;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> };</span><br><br>I don't understand why boost::function can't just have the following:<br> <br><b>typedef Signature signature_type;</b><br><br>It would be very useful!<br>