Re:Don’t blindly prefer emplace_back to push_back
by codeflo on Thursday March 04, 2021 @04:59AM
(#26340594)
That’s one of my favorites as well. The fact that C++ will so happily auto-convert almost anything into an integer makes it even more likely to hit this accidentally.
[ Parent
| on HN ]
Re:Don’t blindly prefer emplace_back to push_back
by xKingfisher on Thursday March 04, 2021 @05:24AM
(#26340755)
And explicit constructors won't save you from this one.