Is there a way in C++ to pass arguments by name like in python?
For example I have a function:
void foo(int a, int b = 1, int c = 3, int d = 5);
Can I somehow call it like:
foo(5 /* a */, c = 5, d = 8);
Or
foo(5, /* a */, d = 1);
Source: Windows Questions C++