Skip to content

maximum number of arguments: limitation or bug ? #284

@gst

Description

@gst

Hi,

I would like to ask if it's a bug or an implementation limitation/detail that when I try to expose a function with 15 arguments it works out of the box, but if add one more arg (that is 16), then I get an enormous compilation error output. with head / relevant information being :

[ 95%] Building CXX object src/pythonbinding/CMakeFiles/_axstatistics.dir/pythonbinding.cpp.o
In file included from /usr/include/boost/python/data_members.hpp:15:0,
                 from /usr/include/boost/python/class.hpp:17,
                 from /usr/include/boost/python.hpp:18,
                 from /home/gregory.starck/projects/statistics/src/pythonbinding/pythonbinding.cpp:6:
/usr/include/boost/python/make_function.hpp: In instantiation of ‘boost::python::api::object boost::python::make_function(F) [with F = void (*)(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)]’:
/usr/include/boost/python/def.hpp:82:58:   required from ‘boost::python::api::object boost::python::detail::make_function1(T, ...) [with T = void (*)(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)]’
/usr/include/boost/python/def.hpp:91:59:   required from ‘void boost::python::def(const char*, Fn) [with Fn = void (*)(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)]’
/home/gregory.starck/projects/statistics/src/pythonbinding/pythonbinding.cpp:147:40:   required from here
/usr/include/boost/python/make_function.hpp:104:57: error: no matching function for call to ‘get_signature(void (*&)(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int))’
         f,default_call_policies(), detail::get_signature(f));
                                    ~~~~~~~~~~~~~~~~~~~~~^~~

Thanks for any confirmation or information ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions