The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problem coding user vector-derived class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 07/21/2005 :  6:09:21 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 ??

TarakDas

USA
2 Posts

Posted - 07/26/2005 :  11:16:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
This is not supported in Origin-C. I have created a tracker -7931.
-Tarak
Go to Top of Page

rlewis

Canada
253 Posts

Posted - 07/26/2005 :  12:58:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Also, 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);
MyVct+=44; // OC-compiler does not like this or any
// expressions involving vector arithmetic
}

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000