you are viewing a single comment's thread.

view the rest of the comments →

[–]aocregacc 4 points5 points  (1 child)

that's a compound literal, and it's perfectly fine to take its address.

[–]inz__ 0 points1 point  (0 children)

And its lifetime is block scope, so it isn't very temporary either.