How to copy/move data between two xltypeMulti XOPERs

Jun 7, 2013 at 2:43 PM
Edited Jun 7, 2013 at 2:49 PM
Hi Keith,
I am back with new ask for your advice :-).
Let say I have some data in xltypeMulti o1 and some data in o2 as well:

OPERX o1(2,3);
OPERX o2(10,10);

What is best=fast way to handle copy of for example first row from o1 to o2(5,0) as start position?

can I use memcpy()?
can you give me example code?

I tried, but I have problem with "stack overflow" :-(

thank you.
Jun 7, 2013 at 2:55 PM
OPERs are STL friendly. Use, e.g., std::copy(o1.begin(), o1.end(), o2.begin() + 5*o2.columns());
Jun 8, 2013 at 11:04 AM
thank you, but I have this error:

Error   1   error C2220: warning treated as error - no 'object' file generated  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility 2239    1   xForecast_XLL

??? any idea?

Jun 8, 2013 at 11:20 AM
Don't treat warnings as errors?
Jun 9, 2013 at 10:31 AM
thank you.