Mixing Exception/Non-Exception Code

Started by
1 comment, last by The Bear 21 years ago
I am working in C++ (under Linux) with a set of code that I did not write and does not use exceptions. In fact, in the Makefile, the compiler flag -fno-exceptions is defined. Also, I need to compile directly with this code (for contractual and other reasons). I''ve contacted the authors of the code and their opinion is: "Try it, let us know how it works." What are the ramifications of mixing code that uses exceptions with code that does not? Are there extra steps that I need to make sure that the underlying code does not break? Am I headed towards destabilization?
Advertisement
Hellooooo? Anybody?
quote:Am I headed towards destabilization?

What do you mean? If the code doesn''t use exceptions, it''ll report errors in some other way. This is usually done by returning error codes or by setting error flags. Just consult the documentation for the details. And exceptions don''t miraculously make code more stable, like your statement makes it sound. They''re just an alternative means of reporting errors.

This topic is closed to new replies.

Advertisement