edlongman / parkrun-barcode-sorter

Embedded software to control parkrun barcode sorter
0 stars 0 forks source link

Make NoOverflow library generic by using c++ typetraits or somthing similar #1

Open edlongman opened 2 years ago

edlongman commented 2 years ago

Not sure if possible. May require asking SO question.

Different implementations for signed and unsigned ints. const MAX and MIN needs std::numerical_limits<uint16_t, uint8_t, int8_t>

Probably too much bother but interesting.

edlongman commented 2 years ago

On further investigation, avr-gcc has no such library