[Boost-bugs] [Boost C++ Libraries] #5934: boost/math/tools/tuple.hpp omits "tr1/" from #include directive.

Subject: [Boost-bugs] [Boost C++ Libraries] #5934: boost/math/tools/tuple.hpp omits "tr1/" from #include directive.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-23 22:48:37


#5934: boost/math/tools/tuple.hpp omits "tr1/" from #include directive.
----------------------------------------------------+-----------------------
 Reporter: David Oliver <doliver@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------
 In version_1_47_0 and the current head (Revision 74542),
 {{{boost/math/tools/tuple.hpp}}} includes at line 34 the C++11 header
 {{{<tuple>}}}, rather than the TR1 header {{{<tr1/tuple>}}}:
 {{{
 #elif defined(BOOST_HAS_TR1_TUPLE)

 #include <tuple>

 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 ...
 }}}

 With gcc 4.4.3, without {{{std=c++0x}}} or {{{std=gnu++0x}}} specified,
 this produces a compatibility warning; other compilers/versions are likely
 to fail to find the header.

 Changing the line to:
 {{{
 #include <tr1/tuple>
 }}}
 makes the compilation (and my unit tests) successful.

 Cheers!

 David Oliver.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5934>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC