On 05/06/2018 at 22:15, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 14+
Platform:
Language(s) : C++ ;
---------
Hello,
I want to modify a BaseArray inside a function and return it. If I try to return the same BaseArray I get an error that it is inaccessible.
For example (pseudo code) :
// Define the BaseArray
maxon::BaseArray<Float> myFloats;
myFloats.Resize(10);
// Use the BaseArray in a function
maxon::BaseArray<Float> myFunction(&myFloats)
{
for (Int32 i=0; i<myFloats.GetCount(); i++)
{
myFloats[i] = i;
}
return myFloats; // --------> this does not work
}
Any ideas?