Boost C++ Libraries: Ticket #1234: unbounded_array copy constructor does not compile with intel v 9.1 https://svn.boost.org/trac10/ticket/1234 <p> Hi there, </p> <p> I just happened to stumble over a small issue when trying to compile ublas::unbounded_array with the Intel Compiler v9.1. </p> <p> A small example: </p> <pre class="wiki"> typedef boost::numeric::ublas::vector&lt;float, boost::numeric::ublas::row_major, boost::numeric::ublas::unbounded_array&lt;float, 4&gt; &gt; Vector4; Vector4 a; Vector4 b(a); // does not compile. </pre><p> The problem is that the template parameters for std::copy operation within the unbounded_array can not be deduced. The first one is 'const float<a class="changeset" href="https://svn.boost.org/trac10/changeset/4" title="Tweak disclaimer formatting, again">[4]</a>', the second one is 'const float*' and the third one is 'float<a class="changeset" href="https://svn.boost.org/trac10/changeset/4" title="Tweak disclaimer formatting, again">[4]</a>'. By changing the _data access to using the provided iterator methods everything is working fine. </p> <p> Regards, Hauke </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1234 Trac 1.4.3 heibel@… Fri, 07 Sep 2007 08:17:22 GMT attachment set https://svn.boost.org/trac10/ticket/1234 https://svn.boost.org/trac10/ticket/1234 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">storage_unbounded_copy.patch</span> </li> </ul> <p> patch for storage.hpp </p> Ticket heibel@… Fri, 07 Sep 2007 18:37:22 GMT <link>https://svn.boost.org/trac10/ticket/1234#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1234#comment:1</guid> <description> <p> Sorry, really... </p> <p> I am not sure what was wrong with me before. This is the correct sample code: </p> <pre class="wiki"> #include &lt;boost/numeric/ublas/vector.hpp&gt; int main(int argc, char* argv[]) { typedef boost::numeric::ublas::vector&lt;float, boost::numeric::ublas::bounded_array&lt;float, 4&gt; &gt; BVector4; BVector4 a; BVector4 b(a); // does not compile. } </pre><p> And I forgot to mention it before, but it is properly compiling under VC7. </p> <p> Cheers, Hauke </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Mon, 24 Sep 2007 20:47:29 GMT</pubDate> <title>owner set https://svn.boost.org/trac10/ticket/1234#comment:2 https://svn.boost.org/trac10/ticket/1234#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gunter</span> </li> </ul> Ticket Gunter Mon, 24 Sep 2007 21:04:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1234#comment:3 https://svn.boost.org/trac10/ticket/1234#comment:3 <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> I modified storage.hpp as suggested. Please notify me if there are more problems with icc 9.1 </p> Ticket