We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f6797 commit fffc86fCopy full SHA for fffc86f
src/validation.h
@@ -42,6 +42,7 @@
42
#include <stdint.h>
43
#include <string>
44
#include <thread>
45
+#include <type_traits>
46
#include <utility>
47
#include <vector>
48
@@ -331,6 +332,11 @@ class CScriptCheck
331
332
ScriptError GetScriptError() const { return error; }
333
};
334
335
+// CScriptCheck is used a lot in std::vector, make sure that's efficient
336
+static_assert(std::is_nothrow_move_assignable_v<CScriptCheck>);
337
+static_assert(std::is_nothrow_move_constructible_v<CScriptCheck>);
338
+static_assert(std::is_nothrow_destructible_v<CScriptCheck>);
339
+
340
/** Initializes the script-execution cache */
341
[[nodiscard]] bool InitScriptExecutionCache(size_t max_size_bytes);
342
0 commit comments