Do I need to do something special with character constants if my code compares a template type with them?
If T is wchar_t, will comparing str[i] to '0' still work or do I have to do something special with '0'?Code:
template <typename T>
bool isallzeros(const basic_string<T>& str)
for ( int i = 0; i < str.length(); ++i )
if ( str[i] != '0' )