On Feb 6, 2008 11:18 AM, Rene Rivera &lt;<a href="mailto:grafikrobot@gmail.com">grafikrobot@gmail.com</a>&gt; 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&#39;s not in a<br>release yet. Or recreate the type &quot;manually&quot; using the component<br>typedefs in function &lt;<a href="http://boost.org/doc/html/boost/functionN.html" target="_blank">http://boost.org/doc/html/boost/functionN.html</a>&gt;.</blockquote>
</div><br>I just created my own quick little class for this:<br><br><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; template&lt; typename t_fun &gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; class FunctionHolder</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; public:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; typedef t_fun type;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; };</span><br><br>I don&#39;t understand why boost::function can&#39;t just have the following:<br>
<br><b>typedef Signature signature_type;</b><br><br>It would be very useful!<br>