blob: 44a9d6c8f254b3ec0973562861451232ef7ec1ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include <exception>
#include <stdexcept>
#define CRU_DEFAULT_COPY(classname) \
classname(const classname &) = default; \
classname &operator=(const classname &) = default;
#define CRU_DEFAULT_MOVE(classname) \
classname(classname &&) = default; \
classname &operator=(classname &&) = default;
#define CRU_DELETE_COPY(classname) \
classname(const classname &) = delete; \
classname &operator=(const classname &) = delete;
#define CRU_DELETE_MOVE(classname) \
classname(classname &&) = delete; \
classname &operator=(classname &&) = delete;
class SerializationException : public std::runtime_error {
public:
using runtime_error::runtime_error;
};
|