Update forward.cpp

template argument deduction