Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2007-10-04 07:55:39


Joel de Guzman wrote:

> Now, in your generic code, you simply refer to X and Y as:
>
> get<1>(p); // x
> get<2>(p); // y

Ooops, I meant:

     get<0>(p); // x
     get<1>(p); // y

of course!

Cheers!

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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