typedef
-
I ran into something interesting while I was sifting through code at work. Instead of seeing a typedef for a pointer like this:
typedef CClass* CClassPtr;
I found that they use:
typedef CPtr<CClass> CClassPtr;
Why the difference? Is one method better than another? I'd ask someone around here, but since the code is so old, most of the people who wrote it are not still around. Any ideas? -- Adam "If you can't beat your computer in chess, try kickboxing"
-
I ran into something interesting while I was sifting through code at work. Instead of seeing a typedef for a pointer like this:
typedef CClass* CClassPtr;
I found that they use:
typedef CPtr<CClass> CClassPtr;
Why the difference? Is one method better than another? I'd ask someone around here, but since the code is so old, most of the people who wrote it are not still around. Any ideas? -- Adam "If you can't beat your computer in chess, try kickboxing"
are you sure that
CPtr
is not a typedef for something else ? maybeCPtr
is a void* ? which would be bac for C++ me think.
Maximilien Lincourt Your Head A Splode - Strong Bad