 |
Ditto 4.13.1
|
|
Loading...
Searching...
No Matches
1#ifndef DITTO_MISC_UTILS_H
2#define DITTO_MISC_UTILS_H
18#define DEFINE_ASSIGNMENT_OPERATOR_USING_SWAP(Type, MoveOrCopy, move_or_copy, \
20 Type &Type::operator=(Type MoveOrCopy) { \
22 if (this == &other) { \
25 Type temporary{move_or_copy}; \
26 swap_function(other, *this); \
31 static_assert(true, "")