PForDelta and S16 with C++ templates