Explicitly mark const overload in Python binding
This commit is contained in:
parent
7db2cc0c2e
commit
4e7ac10320
@ -14,7 +14,7 @@
|
||||
void python::common::export_EclipseConfig(py::module& module)
|
||||
{
|
||||
py::class_< EclipseConfig >( module, "EclipseConfig" )
|
||||
.def( "init", &EclipseConfig::init, ref_internal);
|
||||
.def( "init", py::overload_cast<>(&EclipseConfig::init, py::const_));
|
||||
|
||||
py::class_< SummaryConfig >( module, "SummaryConfig")
|
||||
.def(py::init([](const Deck& deck, const EclipseState& state, const Schedule& schedule) {
|
||||
|
Loading…
Reference in New Issue
Block a user