I have a function that accepts two integers with default value, is there a way to allow the caller of the functions to pass as many parameters as he wants? (first but not second, second but not first, both). example:
void do_something(int first = 0, int second = 0);
int main()
{
do_something(1); // first - how to declare it's the first argument
do_something(1); // second
do_something(1,1);
do_something();
return 0; // I want to allow all those options
}