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

@@ -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>