1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 10:59:12 +00:00

Fix: inconsistent definition of copy constructor and assignment

This commit is contained in:
Rubidium
2023-01-12 21:24:30 +01:00
committed by rubidium42
parent 6dfd2cad69
commit 20a9e13272
2 changed files with 1 additions and 1 deletions

View File

@@ -529,7 +529,6 @@ void check_format_string(S);
struct error_handler {
constexpr error_handler() = default;
constexpr error_handler(const error_handler&) = default;
// This function is intentionally not constexpr to give a compile-time error.
FMT_NORETURN FMT_API void on_error(const char* message);

View File

@@ -10,6 +10,7 @@ struct SQClassMember {
val = o.val;
attrs = o.attrs;
}
SQClassMember& operator=(SQClassMember &o) = delete;
SQObjectPtr val;
SQObjectPtr attrs;
};