I have a resource class that holds textures and fonts etc. and I access those for example with
sf::Texture &getTexture(const std::string &nameOfTexture);
This works.
Now I need an sf::RenderTexture as a class member too, but it won't let me do it. The compilation error is
1>C:\Users\admin\Documents\SFML\SFML-2.1-vc11\include\SFML/Graphics/RenderTarget.hpp(419): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1> C:\Users\admin\Documents\SFML\SFML-2.1-vc11\include\SFML/System/NonCopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1> C:\Users\admin\Documents\SFML\SFML-2.1-vc11\include\SFML/System/NonCopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::RenderTarget::RenderTarget(const sf::RenderTarget &)'
I Googled but couldn't find a solution. How am I supposed to do it?