KalleOlaviNiemitalo commented on PR #2933: URL: https://github.com/apache/avro/pull/2933#issuecomment-2143265569
That's not undefined behaviour. The lifetime of the temporary string is extended to match the lifetime of the reference that is initialised with it. <https://en.cppreference.com/w/cpp/language/reference_initialization#Lifetime_of_a_temporary> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
