Skip to content

dbj-systems/nothingbut

Repository files navigation

nothing_but<T>

  • For the prose please see the article on the blog
  • Please read through the testing code in here
    • then compile it and follow through Visual Studio Debugger
  • This is build with clang-cl aka "clang 10.0.0"
    • thus compatibility issues are not expected.
  • Update 2021 APR 23 : epyphany.h added, please look into it

Other work, libraries and efforts

I know of no other simple C++ code achieveing the same goal. Of course there are other very clever people that have done similliar things like,I have attempted here.

  • Boost Safe Numerics (Robert Ramey, 2012)
    • Part of Boost suite, thus (very) intertwined with the rest of Boost.
  • Dani Le Blanc (Microsoft) SafeInt
    • Used by MSFT teams, for Office, Windows etc.
    • This is decades old, but still has only 8 forks on the GitHub?
    • One can safely assume, there has to be internal C version for Windows code itself.

Above are two probably most mature C++ lib's on this same subject.

They primarily exist to asure safe arithemtics on "numbers", not to provide type safe handler like NothingBut does. None of them is built to stop accidental implicit conversion in C++.

Contact

Please report issues or questions here.

Best way to contact me is the "Issues" tab.

Contributing

Any feedback from users and stakeholders will be used to improve the library.

License

© 2019-2021 by dbj@dbj.org


dbj();