On Wed, Jun 25, 2008 at 3:55 PM, Ryan Lovelett &lt;<a href="mailto:ryan.lovelett@gmail.com">ryan.lovelett@gmail.com</a>&gt; wrote:<br><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;">
<div><div></div><div class="Wj3C7c">On Tue, Jun 24, 2008 at 8:04 PM, Steven Watanabe &lt;<a href="mailto:watanabesj@gmail.com" target="_blank">watanabesj@gmail.com</a>&gt; wrote:<br><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;">

AMDG<div><br>
<br>
Ryan Lovelett wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve been trying to track down what the maximum number of arguments that can be added to boost::function&lt;&gt; is. &nbsp;I&#39;m starting to believe that the maximum number is 10 arguments. &nbsp;As it seems that when I input 11 arguments VS complains with this error:<br>


</blockquote>
<br></div>
That sounds right. &nbsp;You can increase the limit by<br>
<br>
#define BOOST_FUNCTION_MAX_ARGS 20<br>
#include &lt;boost/function.hpp&gt;<br>
<br>
The absolute limit without modifying boost/function/detail/maybe_include.hpp<br>
is 50 arguments.<br>
<br>
In Christ,<br>
Steven Watanabe<br>
<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div><br></div></div>Steve, thanks so much for that trick!&nbsp; It worked like a charm.<br clear="all"><font color="#888888"><br>-- <br><br>Ryan Lovelett<br><a href="mailto:Ryan.Lovelett@gmail.com" target="_blank">Ryan.Lovelett@gmail.com</a><br>
(352) 286-8637
</font></blockquote></div><br>So now I&#39;ve hit the next logical error in this that, I believe is a related issue.&nbsp; boost::bind() only allows for 10 arguments, so I assume I&#39;m going to either have to specify a processor that allows bind to take 20 arguments.&nbsp; Or am going to have to extend bind to allow it to take more?&nbsp; Any help pointing me in the right direction would be greatly appreciated.<br clear="all">
<br>-- <br><br>Ryan Lovelett<br><a href="mailto:Ryan.Lovelett@gmail.com">Ryan.Lovelett@gmail.com</a>