N
Nikola
Hi,
I don't know what does C++ standard say about this (I've googled it, but
found nothing), but in VS6 I managed to compile something like this:
function1:class1(), arg2fun);
, i.e., for function with this definition:
sometype function1(class1 arg1fun, sometype arg2fun);
, I can instantiate constructor of the class to be used as the argument of
the function. However, this does not compile with gcc
Any suggestions on how this should be done? The idea is to avoid declaring
an object of class1 for a mere purpose of passing it to function1.
Thanks,
Nikola
I don't know what does C++ standard say about this (I've googled it, but
found nothing), but in VS6 I managed to compile something like this:
function1:class1(), arg2fun);
, i.e., for function with this definition:
sometype function1(class1 arg1fun, sometype arg2fun);
, I can instantiate constructor of the class to be used as the argument of
the function. However, this does not compile with gcc
Any suggestions on how this should be done? The idea is to avoid declaring
an object of class1 for a mere purpose of passing it to function1.
Thanks,
Nikola