When can you omit the C++ template argument list? For example in Visual Studio 2010 this piece of code compiles fine:
template<class T>
Vec2<T> Vec2<T>::operator+ (const Vec2 &v) const
{
return Vec2(x + v.x, y + v.y);
}
If you inline the code, it actually compiles without any argument list. But is this really the same as the following version?
template<class T>
Vec2<T> Vec2<T>::operator+ (const Vec2<T> &v) const
{
return Vec2<T>(x + v.x, y + v.y);
}