/// @copyright 2020 ECCI, Universidad de Costa Rica. All rights reserved /// This code is released under the GNU Public License version 3 /// @author Jeisson Hidalgo-Céspedes #ifndef COMMON_HPP #define COMMON_HPP /// Declare four of the rule-of-the-five methods #define DECLARE_RULE4(Class, action) \ Class(const Class& other) = action; \ Class(Class&& other) = action; \ Class& operator=(const Class& other) = action; \ Class& operator=(Class&& other) = action /// Disable default methods for copying objects #define DISABLE_COPY(Class) \ DECLARE_RULE4(Class, delete) #endif // COMMON_HPP