pnd-cpp-sdk 1.4.4
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. */ \
8Class(const Class& other) = delete; \
9/* Disable move constructor. */ \
10Class(Class&& other) = delete; \
11/* Disable copy assigment operator. */ \
12Class& operator= (const Class& other) = delete; \
13/* Disable move assigment operator. */ \
14Class& operator= (Class&& other) = delete;
15
16#define PND_DISABLE_COPY(Class) \
17/* Disable copy constructor. */ \
18Class(const Class& other) = delete; \
19/* Disable copy assigment operator. */ \
20Class& operator= (const Class& other) = delete;
21// clang-format on