Skip to content

Instantly share code, notes, and snippets.

View edlongman's full-sized avatar

Edward Longman edlongman

View GitHub Profile
@edlongman
edlongman / NoOverflow.cpp
Created January 10, 2022 10:21
A quick test of a NoOverflow library
#include <iostream>
#include <vector>
#include <limits>
#include <stdint.h>
#include <type_traits>
namespace NoOverflow{
template <class T>
using enable_if_unsigned_t = typename ::std::enable_if<std::is_unsigned<T>::value, T>::type;