@@ -170,9 +170,9 @@ PYBIND11_MODULE(dtlmod, m)
170170 engine.def_property_readonly (" name" , &Engine::get_name, " The name of the Engine (read-only)" )
171171 .def (" begin_transaction" , &Engine::begin_transaction, py::call_guard<py::gil_scoped_release>(),
172172 " Begin a transaction on this Engine" )
173- .def (" put" , py::overload_cast<std::shared_ptr<Variable>>(&Engine::put, py::const_), py::arg (" var" ),
173+ .def (" put" , py::overload_cast<const std::shared_ptr<Variable>& >(&Engine::put, py::const_), py::arg (" var" ),
174174 py::call_guard<py::gil_scoped_release>(), " Put a Variable in the DTL using this Engine" )
175- .def (" put" , py::overload_cast<std::shared_ptr<Variable>, size_t >(&Engine::put, py::const_), py::arg (" var" ),
175+ .def (" put" , py::overload_cast<const std::shared_ptr<Variable>& , size_t >(&Engine::put, py::const_), py::arg (" var" ),
176176 py::arg (" simulated_size_in_bytes" ), py::call_guard<py::gil_scoped_release>(),
177177 " Put a Variable in the DTL using this Engine" )
178178 .def (" get" , &Engine::get, py::arg (" var" ), py::call_guard<py::gil_scoped_release>(),
@@ -182,7 +182,7 @@ PYBIND11_MODULE(dtlmod, m)
182182 .def_property_readonly (" current_transaction" , &Engine::get_current_transaction,
183183 " The id of the current transaction on this Engine (read-only)" )
184184 .def_property_readonly (" metadata_file_name" , &Engine::get_metadata_file_name,
185- " The name of the file in which the engine stored metadata (read-only)" )
185+ " The name of the file in which the engine stored metadata (read-only)" )
186186 .def (" close" , &Engine::close, py::call_guard<py::gil_scoped_release>(), " Close this Engine" );
187187
188188 py::enum_<Engine::Type>(engine, " Type" , " The type of Engine" )
0 commit comments