Boost C++ Libraries: Ticket #11976: compile error when BOOST_UBLAS_SCALED_NORM is defined https://svn.boost.org/trac10/ticket/11976 <p> When <strong>BOOST_UBLAS_SCALED_NORM</strong> is defined, compiler says the following message. </p> <p> boost-1.60.0/include/boost/numeric/ublas/functional.hpp:448:13: error: '<strong>size_type</strong>' was not declared in this scope. </p> <p> I show wrong and correct code (I suppose) as bellow. </p> <div class="wikipage" style="font-size: 90%"><p> Wrong: </p> <div class="wiki-code"><div class="code"><pre><span class="n">size_type</span> <span class="nf">size</span><span class="p">(</span><span class="n">e</span><span class="p">().</span><span class="n">size</span><span class="p">());</span> <span class="k">for</span> <span class="p">(</span><span class="n">size_type</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">size</span><span class="p">;</span> <span class="o">++</span><span class="n">i</span><span class="p">)</span> <span class="p">{</span> </pre></div></div></div><div class="wikipage" style="font-size: 90%"><p> Correct: </p> <div class="wiki-code"><div class="code"><pre><span class="k">typedef</span> <span class="k">typename</span> <span class="n">E</span><span class="o">::</span><span class="n">size_type</span> <span class="n">vector_size_type</span><span class="p">;</span> <span class="n">vector_size_type</span> <span class="nf">size</span><span class="p">(</span><span class="n">e</span><span class="p">().</span><span class="n">size</span><span class="p">());</span> <span class="k">for</span> <span class="p">(</span><span class="n">vector_size_type</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">size</span><span class="p">;</span> <span class="o">++</span><span class="n">i</span><span class="p">)</span> <span class="p">{</span> </pre></div></div></div><p> From what I've seen so far, this is not fixed in version 1.35.0 ~ 1.60.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11976 Trac 1.4.3