Since CompositorTexture is only meant to be created and filled in by CompositorTextureProvider, it makes sense to make its constructor and setTexture methods private and declaring CompositorTextureProvider its friend. That would make roles more clear when you read the header
Since CompositorTexture is only meant to be created and filled in by CompositorTextu reProvider, it makes sense to make its constructor and setTexture methods private and declaring CompositorTextu reProvider its friend. That would make roles more clear when you read the header