I am coming from C# background. There I could do something like this:
Callback callback = new Callback
{
src = src,
callbackPtr = callbackPtr
};
assuming there is only an empty constructor:
Callback(){}
and both variables are public.
Is there something like that in C++ or do I have to create parameterized constructor here?
Callback callback = new Callback(); callback.src = src; callback.callbackPtr = callbackPtr;... and that idea works in C++ as well.srcandcallbackPtr. This would be really dangerous in C++.