Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-09-08 00:01:41


"Robert Ramey" <ramey_at_[hidden]> writes:

> Hmmm - one could also use BOOST_STRONG_TYPEDEF to define
> types so that one would write:
>
> mpi::communicator c;
> std::string str("Hello, World!");
> c.send(tag(0), rank(1), str);
> ...
> or
> tag t(0);
> rank r(1);
> c.send(t, r, str);
>
> Just and idea.

The downside of that approach is that you still have to remember the
parameter order.

-- 
Dave Abrahams
Boost Consulting
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