Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Immer is a library of persistent and immutable data structures written in C++. Parent comment
> What I have specifically is a class that provides a base set of operations and a subclass that lets you do some modifications
If you actually do this with public inheritance then you possibly break const correctness.
Having to separate types for the immutable and mutable data structures with appropriate conversions is a sound idea though.
There are no comments on this comment yet.
> What I have specifically is a class that provides a base set of operations and a subclass that lets you do some modifications
If you actually do this with public inheritance then you possibly break const correctness.
Having to separate types for the immutable and mutable data structures with appropriate conversions is a sound idea though.