template_parameter_function.cpp: test with shared_ptrs.