stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [PATCH] MSVC 7.0 stdlib compatibility patch
Date Wed, 27 Sep 2006 16:26:41 GMT
Farid Zaripov wrote:
[...]
>   The simple solution is replace template <class _OutputIter> version of
> the
> __rw_iter_failed (const _OutputIter&) to the non-template
> __rw_iter_failed (...).

That won't work for class types (only fundamental types can be
passed through the ellipsis).

Would getting rid of the const reference work or does it have
the same problem? __rw_iter_failed (_OutputIter).

Or how about defining two ordinary overloads and the template
as a workaround:

     __rw_iter_failed (const _OutputIter&);
     __rw_iter_failed (const std::ostreambuf_iterator<char>&);
     __rw_iter_failed (const std::ostreambuf_iterator<wchar_t>&);

Martin

Mime
View raw message