GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.46k stars 278 forks source link

How to ensure compilation and functionality with `-fno-exceptions`? #383

Open martinlicht opened 1 year ago

martinlicht commented 1 year ago

My codebase is compiled using f-no-exceptions. Regrettably, that does not work well with the use of exceptions in CImg.

Are there any recommended practices or experiences for compiling CImg.h with exceptions disabled?

I imagine some macro replacements could work provided that exceptions do not occur in the normal control flow and are really just used for error handling.