boostorg / boostorg/safe_numerics

Typo in example?

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

Description

In https://github.com/boostorg/safe_numerics/blob/13ca3d6dd36db1aac2d6b5caca2c281d15c881ad/example/example84.cpp#L37 it says "we know that this cannot fail".

The example, before, has defined a safe_t and input_safe_t types... which are identical. I suspect the intention was to use loose_trap_policy in https://github.com/boostorg/safe_numerics/blob/13ca3d6dd36db1aac2d6b5caca2c281d15c881ad/example/example84.cpp#L24.

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.