Is it possible to have a templated type not known at compile time
<p>Suppose I have a class:</p>

<pre><code>template &lt;unsigned M, unsigned N, typename T = float&gt;
class Matrix
{};
</code></pre>

<p>I want to read from a file which contains matrices of some unknown M,N and create the above type:</p>

<p>Matrix getMatrixFromFile(std::string &amp;path);</p>

<p>Is this possible given that M, N are not known at compile time?</p>
