Arbutils/src/Misc.hpp

15 lines
1.0 KiB
C++
Raw Normal View History

#ifndef ARBUTILS_MISC_HPP
#define ARBUTILS_MISC_HPP
2021-03-07 09:15:34 +00:00
#define NO_COPY_OR_MOVE(type) \
/* @brief: Copying is not allowed */ \
2021-03-07 09:15:34 +00:00
type(const type&) = delete; \
/* @brief: Copying is not allowed */ \
2021-03-07 09:15:34 +00:00
type(type&&) = delete; \
/* @brief: Copy assignment is not allowed */ \
2021-03-07 09:15:34 +00:00
type& operator=(const type&) = delete; \
/* @brief: Copy assignment is not allowed */ \
2021-03-07 09:15:34 +00:00
type& operator=(type&&) = delete;
#endif // ARBUTILS_MISC_HPP