Lines Matching refs:std
4 // Silence MSVC C++17 deprecation warning from Catch regarding std::uncaught_exceptions (up to catch
20 Widget(std::string message) : message(message) { }
23 std::string the_message() const { return message; }
27 std::string message;
38 .def(py::init<std::string>())
45 throw std::runtime_error("C++ Error");
62 REQUIRE(locals["message"].cast<std::string>() == "Hello, World! - 5");
66 REQUIRE(message.cast<std::string>() == "The question");
81 static_assert(std::is_move_constructible<py::scoped_interpreter>::value, "");
82 static_assert(!std::is_move_assignable<py::scoped_interpreter>::value, "");
83 static_assert(!std::is_copy_constructible<py::scoped_interpreter>::value, "");
84 static_assert(!std::is_copy_assignable<py::scoped_interpreter>::value, "");
93 auto pyi2 = std::move(pyi1);
158 REQUIRE(py_widget.attr("the_message").cast<std::string>() == "Hello after restart");
221 auto threads = std::vector<std::thread>();
239 std::function<void()> f_;
240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {}
256 std::string module_name = "test_module_reload";
257 std::string module_file = module_name + ".py";
260 std::ofstream test_module(module_file);
266 std::remove(module_file.c_str());