| pnd-cpp-sdk 1.4.0

Loading...
Searching...
No Matches
util.hpp
1#pragma once
2
3#include <string>
4
5// clang-format off
6#define PND_DISABLE_COPY_MOVE(Class) \
7/* Disable copy constructor. */ \
8 Class(const Class& other) = delete; \
9/* Disable move constructor. */ \
10 Class(Class&& other) = delete; \
11/* Disable copy assigment operator. */ \
12 Class& operator= (const Class& other) = delete; \
13/* Disable move assigment operator. */ \
14 Class& operator= (Class&& other) = delete;
15
16#define PND_DISABLE_COPY(Class) \
17/* Disable copy constructor. */ \
18 Class(const Class& other) = delete; \
19/* Disable copy assigment operator. */ \
20 Class& operator= (const Class& other) = delete;
21// clang-format on