<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 28, 2014 at 1:58 PM, Richard A. O'Keefe <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz" target="_blank">ok@cs.otago.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br></div>
Memory management is the programmer's job in C++, which<br>
means that any realistic C++ program *has* to use mutable<br>
variables or run out of memory in seconds.<br>
<br>
</blockquote></div><br>
</div><div class="gmail_extra">Sure, so can we maintain acyclic data structures (as in Erlang, as I understand) with smart pointers in order to eliminate most *manual* memory management and to write in such a style as coding in Erlang?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">In general maybe using value types, i.e. stack-allocated wrappers for heap-allocated memory (e.g. smart pointers), can help in such coding style?</div></div>