Oh A clarifies one C++ism that applies here, neat!:
"You can replace that memory_ptr with an abstract interface that mimcs the mechanics of a character array
So you don't need to change the actual code, and the memory_ptr is replaceable
yep you might even have to get into templates"
yey, hm
(edited)