News for hackers. Stuff that matters.
Re:Don’t blindly prefer emplace_back to push_back by readams on Thursday March 04, 2021 @06:58AM (#26341317)
I mostly use address sanitizer these days rather than valgrind. It's fast enough that you can just put it in your default compile flags for debugging.
Re:Don’t blindly prefer emplace_back to push_back by junon on Thursday March 04, 2021 @08:25AM (#26342018)
Address sanitizers have bitten me before. Valgrind has not, aside from the times it wasn't supported on new macos.

Just be careful.

Re:Don’t blindly prefer emplace_back to push_back by usefulcat on Thursday March 04, 2021 @01:11PM (#26345905)
It is faster, but IME valgrind is more thorough. I have an option to run unit tests with valgrind.
Re:Don’t blindly prefer emplace_back to push_back by scatters on Thursday March 04, 2021 @08:19AM (#26341939)
And it's available for Visual Studio, so you don't even need to be running Linux.