title: Is it possible to initialize new object in constructor's initialization list and reference it?
body: <p><strong>Client</strong> is the top class of DLL so I need to create and pass new Session object in it's initialization to create <strong>requestor</strong> and <strong>session</strong> should be assigned to same Session. Is it possible?</p>
  
  <pre><code>class Session
  {
  public:Session() {}
  
  };
  
  class Requestor
  {
  public: Requestor(const Session&amp; session) {};
  };
  
  class Client
  {
  public:Client()
  {
      Session newSession;
      requestor = Requestor(newSession);
  }
  
  private:
      Session session;
      Requestor requestor;
  };
  </code></pre>