initialisation list in c++
<p>I barely know c++.Not an expert.</p>

<p>I am looking through an already existing code.
I could not able to understand this following code.</p>

<pre><code>typedef enum
{
    eEvent_MsgOk,            
    eEvent_InvalidMsgId,    
    eEvent_Failure,          
} eEventType;

class Rs232Event
{
public:
    Rs232Msg*     m_pMsg;    
    eEventType     m_eEvent;   

}
Rs232Event::Rs232Event(eEventType eEvent,Rs232Msg* pMsg)
 :  m_pMsg(pMsg), m_eEvent(eEvent)
{
    // not implemented on purpose
}
</code></pre>

<p>Here using the initialisation list they are intialising the values.</p>

<p>But the Rs232Msg class doesnt have a single parameterised constructor.</p>

<p>But its having a constructor which accepts 4 parameters.</p>

<p>I could not identify how its getting invoked.But the code runs without any error.</p>
