{"action":"opened","issue":{"url":"https://api.github.com/repos/alecthomas/entityx/issues/162","repository_url":"https://api.github.com/repos/alecthomas/entityx","labels_url":"https://api.github.com/repos/alecthomas/entityx/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/alecthomas/entityx/issues/162/comments","events_url":"https://api.github.com/repos/alecthomas/entityx/issues/162/events","html_url":"https://github.com/alecthomas/entityx/issues/162","id":190945469,"number":162,"title":"example error C2280 'Renderable::Renderable(const Renderable &)': attempting to reference a deleted function VS 2015","user":{"login":"Clavotro","id":23440305,"avatar_url":"https://avatars.githubusercontent.com/u/23440305?v=3","gravatar_id":"","url":"https://api.github.com/users/Clavotro","html_url":"https://github.com/Clavotro","followers_url":"https://api.github.com/users/Clavotro/followers","following_url":"https://api.github.com/users/Clavotro/following{/other_user}","gists_url":"https://api.github.com/users/Clavotro/gists{/gist_id}","starred_url":"https://api.github.com/users/Clavotro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clavotro/subscriptions","organizations_url":"https://api.github.com/users/Clavotro/orgs","repos_url":"https://api.github.com/users/Clavotro/repos","events_url":"https://api.github.com/users/Clavotro/events{/privacy}","received_events_url":"https://api.github.com/users/Clavotro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T09:20:21Z","updated_at":"2016-11-22T09:20:21Z","closed_at":null,"body":"When building the example under Visual Studio 2015 I receive this error. Compiler output:\r\n\r\n`1>d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(645): error C2280: 'Renderable::Renderable(const Renderable &)': attempting to reference a deleted function\r\n1>  d:\\c++\\entityx-master\\entityx-master\\examples\\example.cc(56): note: compiler has generated 'Renderable::Renderable' here\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(952): note: see reference to function template instantiation 'entityx::ComponentHandle<Renderable,entityx::EntityManager> entityx::EntityManager::assign<C,const C&>(entityx::Entity::Id,const C &)' being compiled\r\n1>          with\r\n1>          [\r\n1>              C=Renderable\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(350): note: see reference to function template instantiation 'entityx::ComponentHandle<Renderable,entityx::EntityManager> entityx::Entity::assign_from_copy<C>(const C &)' being compiled\r\n1>          with\r\n1>          [\r\n1>              C=Renderable\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(349): note: while compiling class template member function 'void entityx::ComponentHelper<C>::copy_component_to(entityx::Entity,entityx::Entity)'\r\n1>          with\r\n1>          [\r\n1>              C=Renderable\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(910): note: see reference to class template instantiation 'entityx::ComponentHelper<C>' being compiled\r\n1>          with\r\n1>          [\r\n1>              C=Renderable\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(644): note: see reference to function template instantiation 'entityx::Pool<C,8192> *entityx::EntityManager::accomodate_component<C>(void)' being compiled\r\n1>          with\r\n1>          [\r\n1>              C=Renderable\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\entityx\\entity.h(946): note: see reference to function template instantiation 'entityx::ComponentHandle<Renderable,entityx::EntityManager> entityx::EntityManager::assign<C,_Ty>(entityx::Entity::Id,_Ty &&)' being compiled\r\n1>          with\r\n1>          [\r\n1>              C=Renderable,\r\n1>              _Ty=std::unique_ptr<sf::Shape,std::default_delete<sf::Shape>>\r\n1>          ]\r\n1>  d:\\c++\\entityx-master\\entityx-master\\examples\\example.cc(107): note: see reference to function template instantiation 'entityx::ComponentHandle<Renderable,entityx::EntityManager> entityx::Entity::assign<Renderable,std::unique_ptr<sf::Shape,std::default_delete<_Ty>>>(std::unique_ptr<_Ty,std::default_delete<_Ty>> &&)' being compiled\r\n1>          with\r\n1>          [\r\n1>              _Ty=sf::Shape\r\n1>          ]`\r\n\r\n"}}
{"actor":{"display_login":"Clavotro"}}