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)