|
-
August 21st, 2008, 01:08 PM
#1
my copy constructor causes segmentation fault
hello guys,
i'm working with someone on a project. i always use windows, but he uses linux.
so i need to move my code to linux before giving him.
my code runs fine on my machine under linux, but he did some modification on the code and then we had a segmentation fault.
the problematic line is a rather simple copy constructor that i implemented by myself, not generated by the compiler:
Vector(const Vector &in):x(in.x),y(in.y),z(in.z)
{
}
i don't know why this line can be a problem. please help.
thank you so much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|