Update forward.cpp

testing cases for template argument deduction