Skip to content

Include <exception> for std::terminate #139

@francoisk

Description

@francoisk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions