c++: add additional templates to overflows.h