[Boost-bugs] [Boost C++ Libraries] #11555: devector.hpp assumes allocator_traits_type is always present

Subject: [Boost-bugs] [Boost C++ Libraries] #11555: devector.hpp assumes allocator_traits_type is always present
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-18 18:34:06


#11555: devector.hpp assumes allocator_traits_type is always present
----------------------------------+----------------------
 Reporter: johnmaddock | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+----------------------
 Many tests fail with Oracle C++ because devector has:

 {{{
       devector& operator=(BOOST_RV_REF(devector) x)
 BOOST_NOEXCEPT_IF(vector<T>::allocator_traits_type::propagate_on_container_move_assignment::value)
 }}}

 I suspect use of vector here needs to be namespace qualified to avoid
 confusion with std::vector, as Oracle C++ outputs:

 {{{
 "../../../boost/thread/csbl/devector.hpp", line 61: Error:
 allocator_traits_type is not a member of
 std::vector<boost::detail::nullary_function<void()> >.
 }}}

 However, there's another issue, the code in <boost/thread/csbl/vector.hpp>
 can be configured to really use std::vector here (I haven't checked if
 that's the case with Oracle C++), and clearly std::vector has no such
 member.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11555>
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:18 UTC