mirror of
https://github.com/danog/libtgvoip.git
synced 2024-12-11 16:49:52 +01:00
19 lines
507 B
C
19 lines
507 B
C
//
|
|
// 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.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#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
|
|
|
|
|