How to pass float to a pybind11 function expecting an int

后端 未结 0 2017
自闭症患者
自闭症患者 2020-12-11 07:46

I copied the example from the pybind11 documentation:

#include 
namespace py = pybind11;
int add(int i, int j) {
    return i + j;
         


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