You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
256 B
12 lines
256 B
4 years ago
|
#include <pybind11/pybind11.h>
|
||
|
namespace py = pybind11;
|
||
|
PYBIND11_MODULE(example, m)
|
||
|
{
|
||
|
py::class_<Pet>(m, "Pet")
|
||
|
.def(py::init<const std::string&>())
|
||
|
.def("setName_T", &Pet::setName)
|
||
|
.def("getName", &Pet::getName);
|
||
|
} auto three()->int {
|
||
|
return 3;
|
||
|
}
|