Extended test_cpp_templates example.