David Abrahams wrote:

> [EMAIL PROTECTED] (Hartmut Kaiser) writes:
> 
> > David Abrahams wrote:
> >
> >> >> I have a problem while using the iterator_adaptor templates in 
> >> >> conjunction with a istreambuf_iterator<char> (an input_iterator 
> >> >> type). The problem shows up, because the
> >> >> istreambuf_iterator<char>::operator*()
> >> >> implementation of the STL I'm using returns a value_type
> >> >> (char), but the dereference policy member expects to return 
> >> >> it a reference.
> >> >> 
> >> >> It seems, that there should be a similar return type 
> deduction for
> >> >> the
> >> >> iterator_adaptor<>::operator*() function as already 
> >> >> implemented for the
> >> >> iterator_adaptor<>::operator->() function.
> >> >
> >> > Regards Hartmut
> >> 
> >> Which template are you having problems with?  Can you post
> >> some code which reproduces the problem?  Did you try 
> >> explicitly specifying the iterator's reference type?
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Can't you solve this by passing char instead of char& as the 4th
> template parameter?

Duh, I feel like an idiot ... Sorry for the noise.

Regards Hartmut


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to