From e1bba349b31d2a11224f556c22462098e1ad60db Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 6 Sep 2001 22:05:24 +0000 Subject: [PATCH] tuple_basic_no_partial_spec.hpp: - Fixed cons construction for compilers with no partial specialization that aren't MSVC [SVN r11056] --- .../boost/tuple/detail/tuple_basic_no_partial_spec.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp b/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp index 8c08cda..0fc0564 100644 --- a/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp +++ b/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp @@ -103,9 +103,9 @@ namespace boost { typename boost::add_reference::type get_tail() const { return tail; } #if defined BOOST_MSVC - template + template explicit cons(const head_type& h /* = head_type() */, // causes MSVC 6.5 to barf. - const Tail& t) : head(h), tail(t.head, t.tail) + const T& t) : head(h), tail(t.head, t.tail) { } @@ -115,6 +115,12 @@ namespace boost { } #else + template + explicit cons(const head_type& h = head_type(), + const T& t) : head(h), tail(t.head, t.tail) + { + } + explicit cons(const head_type& h = head_type(), const tail_type& t = tail_type()) : head(h), tail(t)