J
jagrat
Hi all,
I have a function declaration as:
func(int somex = 0, int somey = 0, int* someval = NULL, vector<int>
v_Val)
compiler gives me error that last argument is without its default
argument.
I have tried various possible combination to assign some default value
to the vector but somehow compiler is not accepting it.
I know NULL, or (1), or vector<int>(1), or new vector<int>(1) will not
work.
Can anyone please let me know what should be the value I have to supply
as the default argument to the parameter.
Thanks,
Jag
I have a function declaration as:
func(int somex = 0, int somey = 0, int* someval = NULL, vector<int>
v_Val)
compiler gives me error that last argument is without its default
argument.
I have tried various possible combination to assign some default value
to the vector but somehow compiler is not accepting it.
I know NULL, or (1), or vector<int>(1), or new vector<int>(1) will not
work.
Can anyone please let me know what should be the value I have to supply
as the default argument to the parameter.
Thanks,
Jag