I have some code like this
template<A, B, C, D, E>
return_type f(param1_type p1, shared_ptr<B>, E)
{
// param1_type A B C D E used here
// returns type return_type
}
where return_type and param1 are known types (not templates).
All calls to this function will use an function specialization that I have created. So I know what types A C D should be when B and E are passed.
I'm trying to add deduction guides to avoid passing any templates to this function.
The code I tried was
return_type f(param1_type, shared_ptr<param2_type>, param3_type) -> return_type <param2_type, SomeClass1, SomeClass2, SomeClass3, param3_type>f(param1_type, shared_ptr<param2_type>, param3_type);
Although this deduction guide doesn't seem to work.
error: expected function body after function declarator
What's wrong with my syntax?