C++ - Programmatically call correct function parameters -


this question has answer here:

i have question. have code:

int myfunc(int arg-a, int arg-b);  int mywrapperfunc(obj a, obj b); 

mywrapperfunc supposed wrap myfunc. mywrapperfunc discards first argument , takes second, array. uses array items parameters. don't know how many parameters myfunc takes, nor know how many items in array-type object(b). how programmatically call myfunc correct number of args? number of args handed on same number of items in array-type object. edit: arg-a , arg-b supposed come array-type object. split object args. edit: i'm trying wrap cython sense involved, hiding background jobs.

it's called reflection, cannot c++. use languages java or c# that.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -