safe_numerics icon indicating copy to clipboard operation
safe_numerics copied to clipboard

Include <exception> for std::terminate

Open francoisk opened this issue 1 year ago • 0 comments

The header checked_result_operations.hpp calls std::terminate which is in <exception> but the latter is not included, causing compilation failures with clang 18 and libc++:

include/boost/safe_numerics/checked_result_operations.hpp:40:14: error: no member named 'terminate' in namespace 'std'; did you mean 'template'?
   40 |         std::terminate();
      |         ~~~~~^~~~~~~~~
      |              template

francoisk avatar Jul 19 '24 09:07 francoisk