title: c++ initialization of static object in class declaration
body: <p>I have a C++ class (class1) with a static object of another class (class2) as a private member.</p>
  
  <p>I know upon using the program I will have to initialize the static object, I can use a default constructor for this (undesired value).</p>
  
  <p>Is it possible to initialize the static object to my desired value only once, and only if I create an object of the containing class (class1)?</p>
  
  <p>Any help would be appreciated.</p>