incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Far...@kyiv.vdiweb.com>
Subject RE: [PATCH] MSVC 7.0 stdlib compatibility patch
Date Wed, 27 Sep 2006 17:27:30 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> Sent: Wednesday, September 27, 2006 7:27 PM
> To: stdcxx-dev@incubator.apache.org
> 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.

Mime
View raw message