Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-10-12 07:50:59


Alexander Nasonov <alnsn_at_[hidden]> writes:

> David Abrahams wrote:
>> FWIW, we didn't cover as_sequence in the book because we really
>> couldn't come up with a use case that justified the non-uniformity in
>> generic programs. If the type you pass happens to be a sequence
>> already it gets treated differently :(.
>
> I don't quite understand your negative reaction on difference. A lot of
> things are different :)
> If you couldn't find a good use case for generic programs, may be we
> could try find something interesting for "real" (I mean not generic)
> programs?

A solution looking for a problem?

The one case we've seen in real designs is in boost::variant, and in
that case I agree with Peter Dimov that the genericity breakage is
unacceptable.

http://lists.boost.org/MailArchives/boost/msg55143.php

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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