Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-08 06:59:45


"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
news:d0iend$tg3$1_at_sea.gmane.org...
> 1. You might way to include a general treatment of placeholder symbols
> (_1, _2,
> _3, ...) in you're library, to help reduce the number of different
> conflicting
> definitions from various libraries.
I use placeholder symbols (_1, _2, _3, ...) as public static members of
lazy::type<T>.
So there shouln't be such problems.

What do you think which statement is more readable and understandable?
LAZY_ALIAS(-Matrix_ + Matrix_ = Matrix_._2 - Matrix_._1);
or
LAZY_ALIAS(-Matrix_ + Matrix_ = _2 - _1);

If second then I better include such support.

> 2. You might provide native support for reference wrappers, from Boost.Ref
> (or
> TR1).

Matrix a, b, c, d, e;
//..
a = (b + c * d * (d + -b + - - c);

Expression template on rhs operators only with references to a, b, c, d, e.
Also I use boost::call_traits<T>::param_type where building expession
template.
So I think there is no need for such support.
Maybe I misunderstand something?

--
Pavel Chikulaev 

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