[PATCH] D40291: [Support] Add WritableMemoryBuffer class

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 13:34:32 PST 2017


On 15 December 2017 at 19:22, David Blaikie <dblaikie at gmail.com> wrote:
> What if the two existing derived classes were templated on their base class?
> (so you could have MemoryBufferMem<WritableMemoryBuffer> and
> MemoryBufferMem<MemoryBuffer>) would that be reasonable?
>

Yeah, that's the template trickery I was referring to. :)

It can definitely be made to work, but I am not sure how nice will the
end result be. I can give it a shot next week.


More information about the llvm-commits mailing list