boostorg / boostorg/safe_numerics

Include <exception> for std::terminate

Open
#139 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
222
Forks
46
PR merge metrics
No merged PRs in 30d

Description

The header `checked_result_operations.hpp` calls `std::terminate` which is in `` 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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.