<div dir="ltr">Fair - there might be some complexities I'm not considering, but figured it was worth asking/taking at least a brief look at to understand the design space - thanks!</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 15, 2017 at 1:34 PM Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15 December 2017 at 19:22, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:<br>
> What if the two existing derived classes were templated on their base class?<br>
> (so you could have MemoryBufferMem<WritableMemoryBuffer> and<br>
> MemoryBufferMem<MemoryBuffer>) would that be reasonable?<br>
><br>
<br>
Yeah, that's the template trickery I was referring to. :)<br>
<br>
It can definitely be made to work, but I am not sure how nice will the<br>
end result be. I can give it a shot next week.<br>
</blockquote></div>