3 ms·
Oops, wasn't you, but the OP I was responding to initially. shared_ptr works fine for my example. Shared immutable state is a case where reference counting wor
by mikeash 13y ago
Oops, wasn't you, but the OP I was responding to initially.
shared_ptr works fine for my example. Shared immutable state is a case where reference counting works extremely well, since immutability implies no cycles.