1 2 3 4 5 6
#pragma once // Disable copying for a class or struct #define DISABLE_COPY(ClassName) \ ClassName(ClassName&) = delete; \ ClassName& operator = (ClassName&) = delete;