Hacker News new | ask | show | jobs
by bbqbbqbbq 1450 days ago
> I don't know how ABSEIL fares around exception safety when exceptions are enabled so YMMV there if you're doing things in an exception context

OMG this is my time to shine. I wrote the library for testing Abseil containers for exception-safety. I don't work there anymore but I know they've implemented exception safety tests for a bunch of containers in there, and I remember when I was writing the library we even found a bug in GNU `std::optional`.

https://www.youtube.com/watch?v=XPzHNSUnTc4 is the talk I gave at cppCon about this.

As a side story, that talk was the first one in the morning and I showed up just before it started on account of my Uber driver missing the highway exit. I had planned to grab some food at the conference but didn't have time so that whole talk I was overstimulated on coffee on an empty stomach trying to keep my composure early in the morning.

1 comments

I'm kind of surprised that ABSEIL even bothers with exception safety since Google builds everything without exceptions. Can you shed some light on why the team decided to invest in making it exception safe?
Because many of the OSS projects using Abseil do use exceptions and that code, as you pointed out, was completely untested with exceptions on.