
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

Sascha Seewald wrote:
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?
I think I don't really understand what you are proposing. Can you provide a use case (preferably small but complete example) what exactly a lazy operator should do and why we need it? Regards, Daniel
participants (2)
-
Daniel Frey
-
Sascha Seewald