{
if (arguments.size() < 1)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 1)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]));
{
if (arguments.size() < 1)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 1)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]));
}
{
if (arguments.size() < 2)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 2)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]));
{
if (arguments.size() < 2)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 2)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]));
{
if (arguments.size() < 3)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 3)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 3)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 3)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 4)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 4)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 4)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 4)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 5)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 5)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 5)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 5)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 6)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 6)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 6)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 6)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 7)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 7)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 7)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 7)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 8)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 8)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),
{
if (arguments.size() < 8)
BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for function."));
+ else if (arguments.size() > 8)
+ BOOST_THROW_EXCEPTION(std::invalid_argument("Too many arguments for function."));
return function(static_cast<T0>(arguments[0]),
static_cast<T1>(arguments[1]),