Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-06-08 13:14:30


From: "David Abrahams" <david.abrahams_at_[hidden]>
> I think we have a bug in the iterator_adaptor documentation. Specifically,
> this example: www.boost.org/libs/utility/iterator_adaptors.htm#example
puts
> the result of calling std::bind1st inside an iterator_adaptor. One
standard
> library implementation tried to default-construct one of these
> iterator_adaptors and we discovered that std::binder1st can't be
> default-constructed. I'd like to replace that part of the example with the
> result of calling boost::bind() instead. I think it would be relatively
> harmless to allow the result type of bind() to be default-constructed,
> because nobody's going to name it anyway.

It's possible to make the result type of bind(f, a, b, ...)
default-construct[ia]ble provided that f, a, b have a default constructor.
reference_wrapper, for instance, doesn't have one.

I don't know. Doesn't seem the right way to fix the problem, but I've no
real objections, either.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk