2020-01-22 12:43:51 +01: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.
|
|
|
|
//
|
|
|
|
|
2020-01-27 16:02:59 +01:00
|
|
|
#pragma once
|
2020-01-22 12:43:51 +01:00
|
|
|
|
|
|
|
#define TGVOIP_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
|
|
TypeName(const TypeName&) = delete; \
|
|
|
|
void operator=(TypeName&) = delete
|
|
|
|
|
|
|
|
#define TGVOIP_MOVE_ONLY(TypeName) \
|
|
|
|
TGVOIP_DISALLOW_COPY_AND_ASSIGN(TypeName); \
|
|
|
|
TypeName(TypeName&&) = default; \
|
|
|
|
TypeName& operator=(TypeName&&) = default
|
|
|
|
|
2020-01-27 16:02:59 +01:00
|
|
|
|