Archived
This forum has been archived. Please start a new discussion on GitHub.
Zero value for IceUtil::Time
Hi!
I sometimes want to initialize an IceUtil::Time variable to some "zero" value in the constructor of a class, so that later on I know if I am doing something for the first time or not.
How can this be done, and does the timeVariable == 0 expression have any meaning?
Thanks,
Catalin
I sometimes want to initialize an IceUtil::Time variable to some "zero" value in the constructor of a class, so that later on I know if I am doing something for the first time or not.
How can this be done, and does the timeVariable == 0 expression have any meaning?
Thanks,
Catalin
0
Comments
-
Just use the default constructor, it initializes to zero. Like:
timeVariable = IceUtil::Time();0