T
th-ko
Hi,
I would like to know whether a certain coding pattern exist to handle
the following problem.
I am using a const methode to get and value a from the class. In case
the value was not calculated yet, I want to start the calculation
(which is not a const methode) and return the value. But since the
calculation is not const, I can't call it within the getter. Any ideas?
Thanks in advance,
Thomas Kowalski
I would like to know whether a certain coding pattern exist to handle
the following problem.
I am using a const methode to get and value a from the class. In case
the value was not calculated yet, I want to start the calculation
(which is not a const methode) and return the value. But since the
calculation is not const, I can't call it within the getter. Any ideas?
Thanks in advance,
Thomas Kowalski