Accelergy-Project / timeloop-python

Python wrapper for the timeloop project.
MIT License
8 stars 3 forks source link

Build error in bindings #27

Open angshuman-parashar opened 8 months ago

angshuman-parashar commented 8 months ago

I'm seeing the following build error when invoking pip3 install -e .:

    [ 78%] Building CXX object CMakeFiles/bindings.dir/bindings/mapping.cpp.o
    .../timeloop-python/bindings/mapping.cpp:52:21: error: no viable overloaded '='
              py::arg() = {}, py::arg() = {}, py::arg() = {},
              ~~~~~~~~~ ^ ~~
    .../timeloop-python/lib/pybind11/include/pybind11/cast.h:1127:12: note: candidate template ignored: couldn't infer template argument 'T'
    arg_v arg::operator=(T &&value) const {
               ^
    .../timeloop-python/lib/pybind11/include/pybind11/cast.h:1051:8: note: candidate function (the implicit copy assignment operator) not viable: cannot convert initializer list argument to 'const pybind11::arg'
    struct arg {
           ^
    .../timeloop-python/lib/pybind11/include/pybind11/cast.h:1051:8: note: candidate function (the implicit move assignment operator) not viable: cannot convert initializer list argument to 'pybind11::arg'
angshuman-parashar commented 8 months ago

FYI I am still seeing these errors with rengzhengcodes/main.