[C++17]
I have a class:
class A
{
int a;
int b;
public:
A(int a, int b) : a{ a }, b{ b } { }
};
and two functions:
int get_a() { return 1; }
int get_b() { return 2; }
Now I construct an object:
A a{ get_a(), get_b() };
The question: is it guaranteed for this case that the order of function evaluation is always get_a
and then get_b
?