Boost C++ Libraries: Ticket #2674: request to make BOOST_PARAMETER_MAX_ARITY re-defineable https://svn.boost.org/trac10/ticket/2674 <p> I'd like to be able to increase BOOST_PARAMETER_MAX_ARITY in my library header if needed, and then include the Boost.Parameter library without worrying that the user might have already included Boost.Parameter headers and thus made my attempt to increase the max arity futile. I believe the Boost.Function library has this feature. My use case is trying to apply Boost.Parameter to the boost::signals2::signal class, which currently has 7 template type parameters (but BOOST_PARAMETER_MAX_ARITY defaults to 5). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2674 Trac 1.4.3 expaler Thu, 17 Mar 2011 18:12:57 GMT <link>https://svn.boost.org/trac10/ticket/2674#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2674#comment:1</guid> <description> <p> One workaround I use in my libraries is to compare <code>BOOST_PARAMETER_MAX_ARITY</code> to the minimum number of parameters via <code>BOOST_PP_LESS</code>, then spit out an <code>#error</code> message if the condition is true. This technique passes the onus of setting <code>BOOST_PARAMETER_MAX_ARITY</code> to the appropriate value from the developer to the users. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 30 Oct 2014 19:14:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2674#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2674#comment:2</guid> <description> <p> <a class="search" href="https://svn.boost.org/trac10/search?q=crash">search:?q=crash</a> will search for the string "crash" </p> </description> <category>Ticket</category> </item> </channel> </rss>