Compare commits

..

4 Commits

Author SHA1 Message Date
nobody
856c5914d7 This commit was manufactured by cvs2svn to create tag
'Version_1_33_1'.

[SVN r31916]
2005-12-05 14:04:06 +00:00
Thomas Witt
11230a7af1 Fix counting_iterator::distance_to fails to instantiate for non default template arguments.
[SVN r31779]
2005-11-25 22:16:09 +00:00
Dave Abrahams
e63eacb6d7 merged from trunk
[SVN r31296]
2005-10-11 23:49:24 +00:00
Markus Schöpflin
6d91541f36 Merged workaround for Tru64/CXX from trunk to RC branch.
[SVN r30853]
2005-09-07 16:06:27 +00:00
4 changed files with 8 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ class counting_iterator
# if 0
template<class OtherIncrementable>
counting_iterator(
counting_iterator<OtherIncrementable> const& t
counting_iterator<OtherIncrementable, CategoryOrTraversal, Difference> const& t
, typename enable_if_convertible<OtherIncrementable, Incrementable>::type* = 0
)
: super_t(t.base())
@@ -188,7 +188,7 @@ class counting_iterator
template <class OtherIncrementable>
difference_type
distance_to(counting_iterator<OtherIncrementable> const& y) const
distance_to(counting_iterator<OtherIncrementable, CategoryOrTraversal, Difference> const& y) const
{
typedef typename mpl::if_<
detail::is_numeric<Incrementable>

View File

@@ -33,7 +33,7 @@ namespace detail
template <class U>
not_an_lvalue lvalue_preserver(U const&, ...);
# define BOOST_LVALUE_PRESERVER(expr) lvalue_preserver(expr,0)
# define BOOST_LVALUE_PRESERVER(expr) detail::lvalue_preserver(expr,0)
#else

View File

@@ -277,6 +277,7 @@ int main()
// Test user-defined type.
test_integer3<my_int1, std::forward_iterator_tag, int>();
test_integer3<long, std::random_access_iterator_tag, int>();
test_integer<my_int2>();
test_integer<my_int3>();

View File

@@ -161,6 +161,10 @@ non_pointer_test<std::ostream_iterator<int>,int,
non_pointer_test<std::ostream_iterator<int>,
int, void, int*, int&, std::output_iterator_tag>
ostream_iterator_test;
#elif BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(70190006))
non_pointer_test<std::ostream_iterator<int>,
int, long, int*, int&, std::output_iterator_tag>
ostream_iterator_test;
#else
non_pointer_test<std::ostream_iterator<int>,
void, void, void, void, std::output_iterator_tag>