tuple_basic_no_partial_spec.hpp:

- Fixed cons construction for compilers with no partial specialization that aren't MSVC


[SVN r11056]
This commit is contained in:
Douglas Gregor
2001-09-06 22:05:24 +00:00
parent 31efdb5485
commit e1bba349b3

View File

@ -103,9 +103,9 @@ namespace boost {
typename boost::add_reference<const tail_type>::type get_tail() const { return tail; }
#if defined BOOST_MSVC
template<typename Tail>
template<typename T>
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<typename T>
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)