Hi all. I've looked all over the place, but haven't found an answer to this.
I have a C++ class with these protected members:
struct tm _creationDate;
struct tm _expirationDate;
struct tm _lockDate;
I want to initialize them at instantiation time. If I put this in the constructor:
_creationDate = {0};
_expirationDate = {0};
_lockDate = {0};
the compiler complains: "expected primary-expression before '{' token"
I also can't find a way to do it in a member-initializer list at the top of the constructor. How does one do this? Thanks!