B
Bryan
I was looking through some old legacy code that has been a pain for some
time and I found this:
typedef struct MSObject {
// Members
} MSObject;
Why would you do this? And furthermore, why, if I change it to:
class MSObject {
public:
// Members
};
do all the functions that use MSObject complain of a syntax error ')'
when I try to compile?
I would really like to replace this typedef'ed type with an object
without having to modify all the files (and there are a bunch) that use it.
time and I found this:
typedef struct MSObject {
// Members
} MSObject;
Why would you do this? And furthermore, why, if I change it to:
class MSObject {
public:
// Members
};
do all the functions that use MSObject complain of a syntax error ')'
when I try to compile?
I would really like to replace this typedef'ed type with an object
without having to modify all the files (and there are a bunch) that use it.