include typedef inside a class header
<p>I'm a cpp newbie and i have a little question:</p>

<p>this is my header:</p>

<pre><code>#ifndef TIMING_H
#define TIMING_H

#define MAX_MESSAGES 1000
typedef Message* MessageP; //inside the class?

class Timing {

public:

 Timing();

private:

 struct Message {
  Agent *_agent;
  double _val;
 };

 MessageP* _msgArr;
 int _waitingMsgs;


};
</code></pre>

<p>my question is do i have to place the typedef inside the class block right above MessageP* _msgArr or is it ok to place it near all the #define..<br>
it doesn't output compilation errors so i'm not sure about it..</p>

<p>Thanks</p>
