Boost C++ Libraries: Ticket #5934: boost/math/tools/tuple.hpp omits "tr1/" from #include directive. https://svn.boost.org/trac10/ticket/5934 <p> In version_1_47_0 and the current head (Revision 74542), <code>boost/math/tools/tuple.hpp</code> includes at line 34 the C++11 header <code>&lt;tuple&gt;</code>, rather than the TR1 header <code>&lt;tr1/tuple&gt;</code>: </p> <pre class="wiki">#elif defined(BOOST_HAS_TR1_TUPLE) #include &lt;tuple&gt; namespace boost{ namespace math{ using ::std::tr1::tuple; // [6.1.3.2] Tuple creation functions using ::std::tr1::ignore; using ::std::tr1::make_tuple; using ::std::tr1::tie; using ::std::tr1::get; // [6.1.3.3] Tuple helper classes using ::std::tr1::tuple_size; using ::std::tr1::tuple_element; }} #elif ... </pre><p> With gcc 4.4.3, without <code>std=c++0x</code> or <code>std=gnu++0x</code> specified, this produces a compatibility warning; other compilers/versions are likely to fail to find the header. </p> <p> Changing the line to: </p> <pre class="wiki">#include &lt;tr1/tuple&gt; </pre><p> makes the compilation (and my unit tests) successful. </p> <p> Cheers! </p> <p> David Oliver. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5934 Trac 1.4.3 John Maddock Mon, 10 Oct 2011 12:08:11 GMT <link>https://svn.boost.org/trac10/ticket/5934#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5934#comment:1</guid> <description> <p> Actually &lt;tuple&gt; is the TR1-conforming include and &lt;tr1/tuple&gt; is a gcc-ism, will fix anyway. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 10 Oct 2011 12:09:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5934#comment:2 https://svn.boost.org/trac10/ticket/5934#comment:2 <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/74891" title="GCC workaround when using TR1 tuple. Fixes #5934.">[74891]</a>) GCC workaround when using TR1 tuple. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5934" title="#5934: Bugs: boost/math/tools/tuple.hpp omits &#34;tr1/&#34; from #include directive. (closed: fixed)">#5934</a>. </p> Ticket David Oliver <doliver@…> Mon, 10 Oct 2011 15:42:28 GMT <link>https://svn.boost.org/trac10/ticket/5934#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5934#comment:3</guid> <description> <p> Thanks for fixing. I should have realized that &lt;tr1/tuple&gt; was a gcc-ism, but the compatibility warning makes it sound authoritative. </p> <p> Cheers! </p> <p> David. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 16 Oct 2011 18:58:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5934#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5934#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74984" title="Merge recent bug fixes from Trunk. Refs #6014 Refs #5832 Refs #5934 ...">[74984]</a>) Merge recent bug fixes from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6014" title="#6014: Patches: Boost.Math patch to fix long double support on OpenBSD/hppa &amp; hppa64 (closed: fixed)">#6014</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5832" title="#5832: Bugs: Unable to clean compile Boost::Test (1.40.0) with GCC using -Weffc++ (closed: invalid)">#5832</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5934" title="#5934: Bugs: boost/math/tools/tuple.hpp omits &#34;tr1/&#34; from #include directive. (closed: fixed)">#5934</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6001" title="#6001: Bugs: math::tools::roots eps_tolerance wrong behaviour at 0. 0. (closed: fixed)">#6001</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5982" title="#5982: Bugs: Wrong value of `one_div_two_pi' in &lt;boost/math/constants/constants.hpp&gt; (closed: fixed)">#5982</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5914" title="#5914: Bugs: std:: qualifier missing for &lt;cstring&gt; function (closed: fixed)">#5914</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5927" title="#5927: Bugs: Missing #include guards (closed: fixed)">#5927</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>