Boost C++ Libraries: Ticket #5233: array test clashes with C++0x https://svn.boost.org/trac10/ticket/5233 <p> Now c++0x has an &lt;array&gt; header, boost::array and std::array can clash. </p> <p> This happens in one array test. I attach a tiny patch that fixes it. We could also remove 'using namespace std', but that requires changing more lines. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5233 Trac 1.4.3 Chris Jefferson Fri, 25 Feb 2011 22:44:40 GMT attachment set https://svn.boost.org/trac10/ticket/5233 https://svn.boost.org/trac10/ticket/5233 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">array_test.patch</span> </li> </ul> <p> Patch to libs/array/test/array2.cpp </p> Ticket Marshall Clow Fri, 25 Feb 2011 22:52:37 GMT status changed https://svn.boost.org/trac10/ticket/5233#comment:1 https://svn.boost.org/trac10/ticket/5233#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I don't mind patching this - but I don't understand why you're getting the errors. </p> <p> The std::array stuff for C++0x is all in the header &lt;array&gt;, which is not included by array2. </p> <p> Can you tell me how it is getting included on your system? (and what your system is) </p> Ticket Chris Jefferson Fri, 25 Feb 2011 23:00:41 GMT <link>https://svn.boost.org/trac10/ticket/5233#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5233#comment:2</guid> <description> <p> I'm using clang with libc++, in C++0x mode. A very unusual and new combination! </p> <p> The include system seems to go like: </p> <p> &lt;utility&gt; includes pair, which needs tuple-like access to pair (tuple_size, tuple_element). This pulls in a header that defines the tuple-like access for pair, tuple and array all in one go. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sat, 26 Feb 2011 01:35:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5233#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5233#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/69291" title="qualify array to avoid conflict with std::array; Refs #5233">[69291]</a>) qualify array to avoid conflict with std::array; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5233" title="#5233: Patches: array test clashes with C++0x (closed: fixed)">#5233</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 28 Mar 2011 21:18:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5233#comment:4 https://svn.boost.org/trac10/ticket/5233#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket Marshall Clow Mon, 28 Mar 2011 21:23:54 GMT <link>https://svn.boost.org/trac10/ticket/5233#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5233#comment:5</guid> <description> <p> Why was this closed? And by whom? </p> <p> I was keeping this open because the fix had not been merged to the release branch. </p> </description> <category>Ticket</category> </item> </channel> </rss>