U
user
Hi all,
I just hit the following definition in a c++ API:
template <class Str> template <class T, class B>
mysql_ColData<Str>:perator Null<T,B> () const {
if ((*this)[0] == 'N' && (*this)[1] == 'U' &&
(*this)[2] == 'U' && (*this)[3] == 'L' && (*this).size() == 4)
return Null<T,B>(null);
else return Null<T,B>(conv(T()));
}
Is the first line equivalent to
template <class Str, class T, class B> ?
Are both syntax compliant to c++ standards?
cheers
regard
phf
I just hit the following definition in a c++ API:
template <class Str> template <class T, class B>
mysql_ColData<Str>:perator Null<T,B> () const {
if ((*this)[0] == 'N' && (*this)[1] == 'U' &&
(*this)[2] == 'U' && (*this)[3] == 'L' && (*this).size() == 4)
return Null<T,B>(null);
else return Null<T,B>(conv(T()));
}
Is the first line equivalent to
template <class Str, class T, class B> ?
Are both syntax compliant to c++ standards?
cheers
regard
phf