Re:We have C++14
by dllthomas on Monday August 18, 2014 @07:00PM
(#8195160)
But the expanded form does provide you with more flexibility. Even if the latter is a synonym for the former, there is a difference between:
vs
[ Parent
| on HN ]
It seems like in the second `foo`, the types of `a` and `b` are not hinged together. So to do it with the template syntax you actually need:
template<typename T, typename U>
void foo(T a, U b)
:)