C++11 patchset 6: forbid object copy using assigment/copy function deleters (#5945)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 10 Jun 2017 11:49:15 +0000 (13:49 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2017 11:49:15 +0000 (13:49 +0200)
commitab128e03ff555a8fc292352b0b21fc1075a4c008
tree41c610f0168cf67abd93d63df7f80e7e9df8d4ba
parent9c497aa71f4678f7a8adcfedd37b73c5391d97ec
C++11 patchset 6: forbid object copy using assigment/copy function deleters (#5945)

C++11 implement function deleting, it's generally used to prevent some object copy
In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis
Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place
12 files changed:
src/client.h
src/emerge.h
src/environment.h
src/map.h
src/mapgen.h
src/objdef.h
src/script/cpp_api/s_base.h
src/script/scripting_client.h
src/script/scripting_mainmenu.h
src/script/scripting_server.h
src/server.h
src/util/basic_macros.h