Skip to content

Commit 9352086

Browse files
Joseph-Edwardsjames-d-mitchell
authored andcommitted
Change make::Thing -> to<Thing>
1 parent 71f1de8 commit 9352086

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/transf.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Copy a {0}.
176176
)pbdoc";
177177
}
178178
thing.def(py::init([](std::vector<Scalar> const& imgs) {
179-
return PTransfSubclass::make(imgs);
179+
return to<PTransfSubclass>(imgs);
180180
}),
181181
py::arg("imgs"),
182182
fmt::format(
@@ -432,7 +432,7 @@ among the points where :math:`f` is defined).
432432

433433
thing.def(py::init([](std::vector<Scalar> const& dom,
434434
std::vector<Scalar> const& im,
435-
Scalar deg) { return PPerm_::make(dom, im, deg); }),
435+
size_t deg) { return to<PPerm_>(dom, im, deg); }),
436436
py::arg("dom"),
437437
py::arg("im"),
438438
py::arg("M"),
@@ -465,7 +465,6 @@ all ``i`` and which is :any:`UNDEFINED` on every other value in the range
465465
void bind_perm(py::module& m, std::string const& name) {
466466
using Perm_ = Perm<N, Scalar>;
467467

468-
using container_type = typename Perm_::container_type;
469468
py::class_<Perm_, Transf<N, Scalar>> thing(m,
470469
name.c_str(),
471470
R"pbdoc(
@@ -529,7 +528,7 @@ of :math:`\{0, 1, \ldots, n - 1\}` for some integer :math:`n` called the
529528
[name](Perm_ const& f) { return transf_repr(name, f); });
530529
m.def("inverse", py::overload_cast<Perm_ const&>(&inverse<N, Scalar>));
531530
} // bind_perm
532-
} // namespace
531+
} // namespace
533532

534533
void init_transf(py::module& m) {
535534
// Base classes

0 commit comments

Comments
 (0)