Я хочу знать, можно ли использовать количество аргументов, переданных вариативному шаблону, в качестве заполнителя в вызове boost :: bind.
Примерно так:
template <typename ... Args>
boost::bind(&function, this, anArg, _1)); //If Args count equals 1
boost::bind(&function, this, anArg, _1, _2)); //If Args count equals 2
boost::bind(&function, this, anArg, _1, _2, _3)); //If Args count equals 3
Возможно ли это?
Спасибо