[Boost-bugs] [Boost C++ Libraries] #11697: Boost.Container: Wrong initialization order in tuple copy-constructor

Subject: [Boost-bugs] [Boost C++ Libraries] #11697: Boost.Container: Wrong initialization order in tuple copy-constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-30 14:38:42


#11697: Boost.Container: Wrong initialization order in tuple copy-constructor
-------------------------------------------------+-------------------------
 Reporter: Manuel Freiberger | Type: Bugs
  <manuel.freiberger@…> | Milestone: To Be
   Status: new | Determined
Component: None | Version: Boost
 Severity: Problem | 1.59.0
                                                 | Keywords:
-------------------------------------------------+-------------------------
 Hello,

 In the file
     boost/container/detail/variadic_templates_tools.hpp
 in line 57 there is a bug because the inherited class comes in the
 initialization list after the member. The code should read

     // Construct tuple from another tuple.
     template<typename... VValues>
     tuple(const tuple<VValues...>& other)
        // : m_head(other.head()), inherited(other.tail())
        : inherited(other.tail()), m_head(other.head())
     {}

 Best regards,
 Manuel

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