Boost C++ Libraries: Ticket #482: uBLAS::subslice doesn't work https://svn.boost.org/trac10/ticket/482 <pre class="wiki">Hello all, I had a problem with compiling a following code for testing subslice() on uBLAS: -- test.cpp #include &lt;boost/numeric/ublas/vector.hpp&gt; #include &lt;boost/numeric/ublas/vector_proxy.hpp&gt; #include &lt;boost/numeric/ublas/io.hpp&gt; int main () { using namespace boost::numeric::ublas; vector&lt;double&gt; v (3); for (int i = 0; i &lt; 3; ++ i) boost::numeric::ublas::subslice (v, 0, 1, 3) (i) = i; std::cout &lt;&lt; v &lt;&lt; std::endl; } -- end of test.cpp % g++ test.cpp test.cpp: In function `int main()': test.cpp:9: error: no matching function for call to `subslice(boost::numeric::ub las::vector&lt;double, boost::numeric::ublas:: unbounded_array&lt;double, std::allocato r&lt;double&gt; &gt; &gt;&amp;, int, int, int)' I guess this is due to some typos on vector_proxy.hpp. I hope attached patch (from Revision 1.45) helps. Regards, Shun Sakuraba sakuraba {at} cb.k.u-tokyo.ac.jp </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/482 Trac 1.4.3 mistevens Sun, 16 Apr 2006 09:41:14 GMT status changed https://svn.boost.org/trac10/ticket/482#comment:1 https://svn.boost.org/trac10/ticket/482#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=556024 Fixed in revision 1.46 And also in matrix_proxy.hpp 1.54 </pre> Ticket