Vladimir Grigoriev
2009-12-18 13:45:45 UTC
After I set on the "Diasble Language Extension" option I get the following
warning
warning C4180: qualifier applied to function type has no meaning; ignored
for the statement
template <typename T>
inline const T operator -( const T &lhs, const T &rhs )
{
return ( T( lhs ) -= rhs );
}
The comment for this warning is saying about typedef. However it is not a
typedef but a template.
Why is const qualifier ignored?
Vladimir Grigoriev
warning
warning C4180: qualifier applied to function type has no meaning; ignored
for the statement
template <typename T>
inline const T operator -( const T &lhs, const T &rhs )
{
return ( T( lhs ) -= rhs );
}
The comment for this warning is saying about typedef. However it is not a
typedef but a template.
Why is const qualifier ignored?
Vladimir Grigoriev