pimpl management good practice

Alas, that is beyond VTK’s C++ requirement. In any case, VTK is already exception-ignorant, so any such exception will surely leave all kinds of other rubble in its wake; a bit of leaked memory is the least of anyone’s worries at that point. But, once we have C++14, yes make_unique all the way.

That’s not PIMPL at all because it is in a public header.

1 Like