Hacker News new | ask | show | jobs
by dymk 1401 days ago
In my experience, which was introducing engineers at Facebook to "fancy" C++ stuff, no.
1 comments

In my experience at G introducing modern C++, the most senior engineers had the biggest problems with it. Junior engineers hated the cryptic errors a lot more, though.
TBF, everyone hates these cryptic errors :)
I still remember (well, have screenshotted) this amazing error I encountered in my first exposure to C++. I was writing code for an assignment implementing my own vector container from scratch, and got "no suitable user-defined conversion from "CSXXX::vector::r_iterator" to "CSXXX::vector::r_iterator" exists".

Thank you GCC for telling me that I'm missing a copy/move constructor (can't remember which it was). Clear as mud as always. At least with the several pages of template instantiation errors you can scroll to the top where useful information can sometimes be found.

That is true. Hopefully, adding more static_assert to the lib can fail the compiler early and give more instructive error message.