470,849 Members | 698 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

help: C++ error

class Order: public vector<int>
Order(int *OrderList, int Num);
Order(vector<int> &SomeVec);
Order(Order &OtherOrder);
virtual ~Order();
int main()
{ vector<Order> OrderSet;
Order A;
return 0;
no copy constructor available^^^^
May 16 '06 #1
1 1308
9,065 Expert Mod 8TB
Although everything I know and have read says copy constructors should take a reference to there own class type you code seems to work with the change

Expand|Select|Wrap|Line Numbers
  1. Order(Order *OtherOrder);
May 16 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by wukexin | last post: by
5 posts views Thread by xuatla | last post: by
9 posts views Thread by YZK | last post: by
6 posts views Thread by Jax | last post: by
5 posts views Thread by Marc Violette | last post: by
1 post views Thread by Rahul | last post: by
12 posts views Thread by =?Utf-8?B?ZGdvdw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.