klopter
asked on
How do you do a forward declaration?
// How do I make this compile?
class Link {
public:
const Read *neighbor ;
};
class Read {
private:
public:
vector<Link> left_exts ;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Spock to Enterprise, Captain Kirk you should answer,
As Captain Kirk answer, this should compile perfectly:
class Read;
class Link {
public:
const Read *neighbor ;
};
class Read {
private:
public:
vector<Link> left_exts ;
};
class Read;
class Link {
public:
const Read *neighbor ;
};
class Read {
private:
public:
vector<Link> left_exts ;
};
ASKER
Thanks,
Ken
Ken