2020-03-30 12:00:09 +00:00
|
|
|
//
|
|
|
|
// libtgvoip is free and unencumbered public domain software.
|
|
|
|
// For more information, see http://unlicense.org or the UNLICENSE file
|
|
|
|
// you should have received with this source code distribution.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef LIBTGVOIP_UTILS_H
|
|
|
|
#define LIBTGVOIP_UTILS_H
|
|
|
|
|
|
|
|
#define TGVOIP_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
2020-04-24 09:21:58 +00:00
|
|
|
TypeName(const TypeName&) = delete; \
|
|
|
|
void operator=(TypeName&) = delete
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-04-24 09:21:58 +00:00
|
|
|
#define TGVOIP_MOVE_ONLY(TypeName) \
|
|
|
|
TGVOIP_DISALLOW_COPY_AND_ASSIGN(TypeName); \
|
|
|
|
TypeName(TypeName&&) = default; \
|
|
|
|
TypeName& operator=(TypeName&&) = default
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-04-24 09:21:58 +00:00
|
|
|
#endif // LIBTGVOIP_UTILS_H
|