Boost C++ Libraries: Ticket #1502: Invalid matrix_indirect / vector_indirect construction with shortcuts https://svn.boost.org/trac10/ticket/1502 <p> I'm using the indirect array proxies with BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS defined. The template parameters of matrix_indirect / vector_indirect in matrix_expression / vector_expression are invalid. </p> <p> See lines 372-381 in expression_types.hpp (in SVN revision 39369). Changing matrix_indirect&lt;E, A &gt; to matrix_indirect&lt;E,indirect_array&lt;A&gt; &gt; seems to solve the problem. </p> <pre class="wiki">#define BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS #include &lt;vector&gt; #include &lt;boost/numeric/ublas/matrix.hpp&gt; #include &lt;boost/numeric/ublas/vector.hpp&gt; #include &lt;boost/numeric/ublas/matrix_proxy.hpp&gt; #include &lt;boost/numeric/ublas/vector_proxy.hpp&gt; int main() { using namespace boost::numeric::ublas; indirect_array&lt;std::vector&lt;std::size_t&gt; &gt; ia; matrix&lt;double&gt; m; vector&lt;double&gt; v; m(ia,ia); // compilation error v(ia); // compilation error } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1502 Trac 1.4.3 Stanislav Funiak <sfuniak@…> Thu, 06 Dec 2007 03:42:55 GMT attachment set https://svn.boost.org/trac10/ticket/1502 https://svn.boost.org/trac10/ticket/1502 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">indirect.cpp</span> </li> </ul> Ticket Gunter Thu, 06 Dec 2007 19:21:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1502#comment:1 https://svn.boost.org/trac10/ticket/1502#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41801" title="- fix and close #1502 - the return types were not correct: there was ...">[41801]</a>) - fix and close <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1502" title="#1502: Bugs: Invalid matrix_indirect / vector_indirect construction with shortcuts (closed: fixed)">#1502</a> </p> <ul><li>the return types were not correct: there was A instead of indirect_array&lt;A&gt; </li></ul> Ticket Eric Niebler Sun, 09 Dec 2007 02:38:17 GMT <link>https://svn.boost.org/trac10/ticket/1502#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1502#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41915" title="Merged revisions 41776-41815 via svnmerge from ...">[41915]</a>) Merged revisions 41776-41815 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41778" title="compute 'result' in to_ulong() as it is done in Boost 1.34">r41778</a> | bgubenko | 2007-12-06 02:47:52 -0800 (Thu, 06 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> compute 'result' in to_ulong() as it is done in Boost 1.34 </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41788" title="Add Google Analytics tracking code for the uploaded docs. ">r41788</a> | vladimir_prus | 2007-12-06 08:00:38 -0800 (Thu, 06 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add Google Analytics tracking code for the uploaded docs. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41789" title="Fix search for html files. Put packages where beta.boost.org can fetch ...">r41789</a> | vladimir_prus | 2007-12-06 08:12:01 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix search for html files. Put packages where beta.boost.org can fetch them. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41791" title="Fix quoting">r41791</a> | vladimir_prus | 2007-12-06 08:23:39 -0800 (Thu, 06 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fix quoting </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41795" title="Bump VC++ version check to continue applying VC-specific workaround ...">r41795</a> | dgregor | 2007-12-06 09:17:38 -0800 (Thu, 06 Dec 2007) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Bump VC++ version check to continue applying VC-specific workaround for Visual C++ 9.0. Fixes <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/1499" title="#1499: Bugs: xxx is not a member of 'boost::signals::detail::named_slot_map_iterator (reopened)">#1499</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41798" title="Disable more Visual C++ warnings in Function headers. Fixes #1416 ">r41798</a> | dgregor | 2007-12-06 10:39:06 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Disable more Visual C++ warnings in Function headers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1416" title="#1416: Bugs: Warnings from Boost.Function need suppression. (closed: fixed)">#1416</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41801" title="- fix and close #1502 - the return types were not correct: there was ...">r41801</a> | guwi17 | 2007-12-06 11:21:31 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <ul><li>fix and close <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1502" title="#1502: Bugs: Invalid matrix_indirect / vector_indirect construction with shortcuts (closed: fixed)">#1502</a> </li><li>the return types were not correct: there was A instead of indirect_array&lt;A&gt; </li></ul><p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41802" title="Workaround for MPICH to properly deal with SEEK_* constants. Fixes #1486 ">r41802</a> | dgregor | 2007-12-06 11:22:06 -0800 (Thu, 06 Dec 2007) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Workaround for MPICH to properly deal with SEEK_* constants. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1486" title="#1486: Patches: SEEK_* defined, but shouldn't be for MPICH2 (closed: fixed)">#1486</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41805" title="annotates on msvc 7.1 overload selection bug in function_types example ">r41805</a> | t_schwinger | 2007-12-06 13:25:10 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> annotates on msvc 7.1 overload selection bug in function_types example </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> </channel> </rss>