Origin Version: Origin Pro-&.5 SR5):
Operating System: Win-XP Pro
The OC compiler does not like the following ...
class rnVector : public vector
{
public:
rnVector() : vector()
{
}
rnVector(uint nSize) : vector(nSize)
{
}
rnVector(Dataset &ds, BOOL bRemoveMissingValues = FALSE) : vector(ds,bRemoveMissingValues)
{
}
rnVector(vector &vR, vector &vI) : vector(vR,vI)
{
}
};
void MyTest1(void)
{
rnVector MyVct;
MyVct.SetSize(5);
for(int i=0;i<5;i++)
{
MyVct[i]=1.25; //OC compiler does NOT like this and flags the following error
// Error, inappropriate indexed dereferencing
}
}
Is there an easy way around this ??