Oh, I tried the above and there's an additional twist - the friend declaration in ModuleDeleter injects a make_module_ptr declaration into the surrounding namespace. You either need to make the private constructor public or introduce another level of indirection.
Oh, I tried the above and there's an additional twist - the friend declaration in ModuleDeleter injects a make_module_ptr declaration into the surrounding namespace. You either need to make the private constructor public or introduce another level of indirection.