Searched refs:ConvertibleFromUserType (Results 1 – 1 of 1) sorted by relevance
211 struct ConvertibleFromUserType { in TEST_SUBMODULE() struct214 ConvertibleFromUserType(UserType u) : i(u.value()) { } in TEST_SUBMODULE() argument217 py::class_<ConvertibleFromUserType>(m, "AcceptsUserType") in TEST_SUBMODULE()219 py::implicitly_convertible<UserType, ConvertibleFromUserType>(); in TEST_SUBMODULE()221 m.def("implicitly_convert_argument", [](const ConvertibleFromUserType &r) { return r.i; }); in TEST_SUBMODULE()226 const auto &r = o.cast<const ConvertibleFromUserType &>(); in TEST_SUBMODULE()233 o.cast<const ConvertibleFromUserType &>(); in TEST_SUBMODULE()