johnmcfarlane / cnl

A Compositional Numeric Library for C++
Boost Software License 1.0
632 stars 63 forks source link

the godbolt link in the readme does not compile #1044

Open Hailios opened 7 months ago

Hailios commented 7 months ago

Describe the bug:

A clear and concise description of what the bug is including: this is the current godbolt link in the readme https://godbolt.org/z/vzdvYzeqW and it fails to compile

this is the top error

<source>:20:25: error: 'numeric_limits' is not a member of 'cnl'; did you mean 'std::numeric_limits'?
   20 |     auto epsilon = cnl::numeric_limits<q7_8>::min();  // 1/256
      |                         ^~~~~~~~~~~~~~

To Reproduce:

Steps to reproduce the behavior. click the godbolt link, see what fails.

Expected behavior:

A clear and concise description of what you expected to happen. godbolt link should build cleanly (and potentially print something?)

Link to Compiler Explorer:

An example of the failure using Compiler Explorer https://godbolt.org/z/vzdvYzeqW.