Questions tagged [exception-safety]

93 questions
-1
votes
1 answer

Should private function members be exception safe?

When writing exception-safe code, should all private member functions guarantee at least basic exception safety? What would be best/good practice in this situation? Alternatives? For example, say I have a class Foo with public function member…
-1
votes
1 answer

Safely handle Objective C user code from a C codebase

Let me first say that I have very limited knowledge in Objective C programming. I have a C executable that calls an user-defined function written in Objective C. Provided that anything could happen in the user code, what would be the best way to…
Snaipe
  • 1,191
  • 13
  • 25
-1
votes
1 answer

Exception safety guarantee of QCoreApplication::postEvent

I am posting an event with this code: QEvent*event=new QEvent(QEvent::User); QCoreApplication::postEvent(pointerToSomeQObject,event); QCoreApplication::postEvent is described here. However, there is absolutely no information about what I am suppose…
Arnaud
  • 3,765
  • 3
  • 39
  • 69
1 2 3 4 5 6
7