shoooe / Inom

A numeric library with some static guarantees. WARNING: This project is abandoned due to the fact that a library that does exactly the same thing, few years ahead of this one, already exists: https://bitbucket.org/davidstone/bounded_integer.
0 stars 0 forks source link

Inom

This library is aimed at being a proof of concept and nothing more. It's not intended for any real use and it's numerically just a mental and theoretical masturbation.

Example

#include <iostream>
#include <inom/integer>

int main() {
    using namespace inom::literals;
    auto x = 1_int;
    auto y = 2_int;
    std::cout << (x + y); // 3
}