Timeline for Designing around shallow constness with inheritance
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 27, 2020 at 2:56 | history | edited | Deduplicator | CC BY-SA 4.0 |
edited body
|
| Oct 6, 2015 at 12:41 | comment | added | Emily L. |
Yes, what I really want is const as in "will not be modified here". None of the images will really reside in a ROM or anything. Your example code pretty much is what I did I my question, isn't it? I've been through a few design iterations now and seem to have landed at a ImageBuffer class and non copyable ImageView and Image = shared_ptr<ImageView> and ConstImage = shared_ptr<const ImageView>.
|
|
| Oct 6, 2015 at 0:36 | history | edited | Deduplicator | CC BY-SA 3.0 |
added 145 characters in body
|
| Oct 6, 2015 at 0:29 | history | answered | Deduplicator | CC BY-SA 3.0 |