Should I use if unlikely for hard crashing errors? – stackoverflow.com

I often find myself writing a code that looks something like this: if(a == nullptr) throw std::runtime_error("error at " __FILE__ ":" S__LINE__); Should I prefer handling errors with if unlikely? ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Should I use if unlikely for hard crashing errors? – stackoverflow.com"