2018-09-01 00:59:09 +02: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) \
|
|
|
|
TypeName(const TypeName&) = delete; \
|
2019-03-10 23:12:09 +01:00
|
|
|
void operator=(TypeName&) = delete
|
2018-09-01 00:59:09 +02:00
|
|
|
|
2019-04-15 01:43:10 +02:00
|
|
|
#define TGVOIP_MOVE_ONLY(TypeName) \
|
|
|
|
TGVOIP_DISALLOW_COPY_AND_ASSIGN(TypeName); \
|
|
|
|
TypeName(TypeName&&) = default; \
|
|
|
|
TypeName& operator=(TypeName&&) = default
|
|
|
|
|
2018-09-01 00:59:09 +02:00
|
|
|
#endif /* LIBTGVOIP_UTILS_H */
|