Don’t try for exception safety Thursday 20th December 2007 3 Comments
Achieve it! “Do or do not, there is no try” – Yoda, on strong exception safety. I’ve decided that I like exceptions a lot more now that I know how to use them to my advantage. Take the following piece of code: #include <cstring> using std::memcmp; size_t DoConversion( char* dst, size_t dst_len, const char* src, […]