by Joker_vD · 3y ago · 0 comments
Note that the struct values thus created have longer lifetimes than temporary C++ objects created directly inside the argument list of a function call.
https://cigix.me/c17#6.5.2.5.p5
> If the compound literal occurs outside the body of a function, the object has static storage duration; otherwise, it has automatic storage duration associated with the enclosing block.
func(&(bla_t){ .x = 0, .y = 1 });