-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compile warnings. #6204
Fix compile warnings. #6204
Conversation
https://stackoverflow.com/questions/19267408/why-does-stdmove-prevent-rvo |
remove std::move may help in common modern compilers, but the standard said this kind of optimization is allowed, not must, i am afraid it is not a good way to rely on certain implementations not the standard
|
i suppose there are two ways to solve:
|
Thank You ! PS: 😅
|
Any advice? @tqchen |
let us go with the warning disable for now. Given that the move can be more efficient(as efficient as RVO) and we do not want to introduce additional complexity here |
Thanks @cbalint13 @MarisaKirisame @hanzz2007 |
Issue:
Details:
Origins:
Mentioned line was introduced here by @hanzz2007 on PR #6128 .
@hanzz2007 , @tqchen please help with the review.
Thank You !