Skip to content

Conversation

@NamorNiradnug
Copy link
Contributor

@NamorNiradnug NamorNiradnug commented Nov 7, 2025

The main concern is the case when Type is std::string. It is a common scenario when copy is unnecessary and for strings it is not too cheap and may cause allocations.

P.S. Sorry for the mess with commits and failed builds.

@NamorNiradnug NamorNiradnug force-pushed the return-reference-in-value branch 4 times, most recently from 5f1891a to 2284411 Compare November 8, 2025 21:24
@NamorNiradnug NamorNiradnug force-pushed the return-reference-in-value branch from 2284411 to 61a99b8 Compare November 8, 2025 21:28
Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

btw when updating wayfire we should also bump the api/abi version there ..

@ammen99 ammen99 merged commit 3597fcd into WayfireWM:master Nov 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants