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 97b50fe commit 8819ec4Copy full SHA for 8819ec4
tests/test_multiple_interpreters/mod_per_interpreter_gil_with_singleton.cpp
@@ -15,6 +15,10 @@ class MySingleton {
15
public:
16
MySingleton() = default;
17
~MySingleton() = default;
18
+ MySingleton(const MySingleton &) = delete;
19
+ MySingleton &operator=(const MySingleton &) = delete;
20
+ MySingleton(MySingleton &&) = default;
21
+ MySingleton &operator=(MySingleton &&) = default;
22
23
static MySingleton &get_instance() {
24
PYBIND11_CONSTINIT static py::gil_safe_call_once_and_store<MySingleton> storage;
0 commit comments