title: only constructors take member initializers
body: <p>I am trying to install a simulator. While trying to compile the source files, I am getting the error message in the title from the code below. </p>
  
  <pre><code>#include "core.hpp"
  core::core(const pe_id &amp;id, const uint64_t &amp;t,
             shared_ptr&lt;id_factory&lt;packet_id&gt; &gt; pif,shared_ptr&lt;tile_statistics&gt; st, 
             logger &amp;l, shared_ptr&lt;random_gen&gt; r, shared_ptr&lt;memory&gt; mem, 
             uint32_t number_of_core_msg_types, uint32_t msg_q_size, uint32_t 
             bytes_per_flit) throw(err) : pe(id), system_time(t), stats(st), log(l), ran(r),
             m_msg_queue_size(msg_q_size), m_bytes_per_flit(bytes_per_flit), 
             m_memory(mem), m_packet_id_factory(pif), 
             m_receive_channel_round_robin_pointer(0), m_send_queue_round_robin_pointer(0)
  { 
    m_number_of_msg_types = number_of_core_msg_types + mem-&gt;number_of_mem_msg_types();
    m_first_core_msg_type = mem-&gt;number_of_mem_msg_types();
    for (uint32_t i = 0; i &lt; m_number_of_msg_types; ++i) {
      m_in_msg_queues[i] = shared_ptr&lt;messageQueue&gt; (new messageQueue(i, m_msg_queue_size));
      m_out_msg_queues[i] = shared_ptr&lt;messageQueue&gt; (new messageQueue(i, m_msg_queue_size));
  }
    m_memory-&gt;set_core_send_queues(m_out_msg_queues);
    m_memory-&gt;set_core_receive_queues(m_in_msg_queues);
  }
  </code></pre>
  
  <p>I also attach the declaration of core class from header file. It seems that the core::core is constructor but still I got the above error. </p>
  
  <pre><code>class core : public pe {
  public:
  core (const pe_id &amp;id, const uint64_t &amp;system_time,
       shared_ptr&lt;id_factory&lt;packet_id&gt; &gt; packet_id_factory,
       shared_ptr&lt;tile_statistics&gt; stats, logger &amp;log,
       shared_ptr&lt;random_gen&gt; ran,
       shared_ptr&lt;memory&gt; mem,
       uint32_t number_of_core_msg_types, uint32_t msg_queue_size, uint32_t m_bytes_per_flit) throw(err);
  virtual ~core() throw();
  </code></pre>
  
  <p>Any help about it? </p>