Let’s say there is the following function:
void SetTheSize(const SIZE *size) { ... }
Is there any way to call that function without specifying the SIZE variable? e.g.,
SetTheSize((const SIZE*)&{10, 10});
edit:
I should had mentioned that the SIZE is a struct, without SIZE(int, int) constructor.
No, only thing nearest in C++ is to do like this:
And call it using an unnamed temporary variable:
SetTheSize(SIZE(10,10));