|
Boost : |
From: Sascha Seewald (vudu_at_[hidden])
Date: 2005-04-14 17:04:17
i wonder if it would be possible to support lazy evaluation in
boost::operators.
we could provide "lazy" operator class templates and combine them with the
"normal" operator class templates.
example:
class point
: boost::addable< point<T> // point + point (normal)
, boost::subtractable< point<T> // point - point (normal)
, boost::lazy_dividable2< point<T>, T // point / T (lazy)
, boost::lazy_multipliable2< point<T>, T // point * T, T * point (lazy)
> > > >
{
...
}
what do you think?
sascha
-- +++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++ GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk