Function returns pointer of a basic type the same as returning the basic type when using Pybind11

后端 未结 0 1133
小鲜肉
小鲜肉 2021-01-31 17:45

I have a very simple cpp file uses pybind11:

//example.cpp
namespace py = pybind11;
void foo(int *i) { (*i)++; }

PYBIND11         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题