> -----Original Message-----
> From: Martin Sebor [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 27, 2006 7:27 PM
> To: [email protected]
> Subject: Re: [PATCH] MSVC 7.0 stdlib compatibility patch
> 
> 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).
  The MSVC 7.0 thinks differently, because if works :)

> Would getting rid of the const reference work or does it have 
> the same problem? __rw_iter_failed (_OutputIter).
  I'll try this tomorrow.

> 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>&);
  This works also.

Farid.

Reply via email to