Fixed Trac #11697 ("Wrong initialization order in tuple copy-constructor")

This commit is contained in:
Ion Gaztañaga
2015-09-30 22:35:17 +02:00
parent 85b2ed509b
commit 79274e4aae
2 changed files with 2 additions and 1 deletions

View File

@@ -1221,6 +1221,7 @@ use [*Boost.Container]? There are several reasons for that:
* Fixed bugs:
* [@https://svn.boost.org/trac/boost/ticket/11627 Trac #11627: ['"small_vector<T,n>::swap() appears to be broken"]].
* [@https://svn.boost.org/trac/boost/ticket/11628 Trac #11628: ['"small_vector<int,n> iterates over elements in destructor"]].
* [@https://svn.boost.org/trac/boost/ticket/11697 Trac #11697: ['"Wrong initialization order in tuple copy-constructor"]].
[endsect]

View File

@@ -54,7 +54,7 @@ class tuple<Head, Tail...>
// 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())
{}
template<typename... VValues>