Hi all,
I'm trying to write a code in which I define inside the main a lambda function which, having in input a variable number of parameters (cstdarg library), modifies an object.
The problem occurs only when I add the ..., va_list, va_start, va_end lines.
I don't know why but it doesn't work. Can someone help me?
Than you very much in advice.
Doesn't work mens that the compiler stops the esecution without giving me indications. I tried both with visuale studio and codeblocks.
Formally, is the code correct?
Thank you for the answer,
I really aprecciate tour help
The problem is that Model is a reference type. va_start() works by using the stack address of the last non-variadic parameter to compute offsets, but since Model is a reference, you can't get that address.