TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
TurtleBrains::Core::Noncopyable Class Reference

#include <tb_noncopyable.hpp>

Inheritance diagram for TurtleBrains::Core::Noncopyable:
TurtleBrains::Application::ApplicationDialog TurtleBrains::Application::RealtimeApplication TurtleBrains::Core::ResourceCache< ResourceType, HandleType > TurtleBrains::Core::UnitTest::TestCaseInterface TurtleBrains::Game::EntityBehaviorInterface TurtleBrains::Game::TileSystem TurtleBrains::Game::Unstable::EntityFactoryInterface TurtleBrains::Graphics::RenderTarget TurtleBrains::Graphics::SpriteManager TurtleBrains::Graphics::Text TurtleBrains::Graphics::TextureManager TurtleBrainsExpress::Interface::Unstable::Controller

Detailed Description

When making an object that should not be copied or assigned to another object simply deriving from Noncopyable will do the trick. This guarentees that MyObject object(otherObject); and object = otherObject will cause a compilation error, preventing copy and/or assignment, including move ctor and move operator.