How to initialize const member requiring computations to be performed?
<p>I understand that for a class</p>

<pre><code>class A { 
     const int myint;
  public:
     A (const int yourint);
     A (const std::string yourstring);
};
</code></pre>

<p>I could initialize <code>myint</code> in the initializer list like so:</p>

<pre><code>A::A (const int yourint) : myint (yourint) {};
</code></pre>

<p>However, what is the proper way of initializing <code>myint</code> from the second constructor if the the data required to compute it comes say from a string and the computations may be involved?</p>