TurtleBrains  0.2.1
High quality, portable, C++ API for native application and game development.
TurtleBrains::Core::Noncopyable Class Reference

#include <tb_noncopyable.h>

Inheritance diagram for TurtleBrains::Core::Noncopyable:
TurtleBrains::Application::ApplicationDialog TurtleBrains::Application::RealtimeApplication TurtleBrains::Audio::AudioManager TurtleBrains::Game::EntityBehaviorInterface TurtleBrains::Game::EntityFactoryInterface TurtleBrains::Game::TileSystem TurtleBrains::Graphics::SpriteManager TurtleBrains::Graphics::Text TurtleBrains::Graphics::TextureManager

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.