Rooters,
We have started to make significant use of the TDatime class in our
interface with our database. There are two implicit-conversion-enabled
constructors in TDatime:
TDatime TDatime(UInt_t time)
TDatime TDatime(const char* sqlDateTime)
which can somewhat surprisingly build a TDatime out of an Int or a char
* when you don't expect it to. Is it possible to set these constructors
as 'explicit' (at least on the compilers which support this keyword?)
to help catch this kind of mistake? I think putting TDatime("Mystring")
or TDatime(20000922) around uses where the conversion is honestly
wanted will not be much of a hardship to improve the typesafety here.
Thanks,
George Heintzelman
gah@bnl.gov
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET