Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-03-29 16:30:13


If we want to avoid proxy objects, one option would be to go with the
existing Property Map interface. This uses put() and get() functions,
and reserves operator[] for only when there are lvalues.

On Thu, 29 Mar 2001, Ullrich Koethe wrote:

koethe> Sorry, I was unclear. I meant to say that I want
koethe>
koethe> x[i] = a
koethe>
koethe> replaced with
koethe>
koethe> x.set(i,a)
koethe>
koethe> because this is so much more flexible (with only a minor loss in
koethe> readability, e.g.
koethe>
koethe> magnitude.set(i, sqrt(x[i]*x[i] + y[i]*y[i]))
koethe>
koethe> (of course, there are hacks to make x[i] = a work when x[i] is a
koethe> computed attribute, but they are really just hacks)
koethe> --
koethe> ________________________________________________________________
koethe> | |
koethe> | Ullrich Koethe Universität Hamburg / University of Hamburg |
koethe> | FB Informatik / Dept. of Computer Science |
koethe> | AB Kognitive Systeme / Cognitive Systems Group |
koethe> | |
koethe> | Phone: +49 (0)40 42883-2573 Vogt-Koelln-Str. 30 |
koethe> | Fax: +49 (0)40 42883-2572 D - 22527 Hamburg |
koethe> | Email: u.koethe_at_[hidden] Germany |
koethe> | koethe_at_[hidden] |
koethe> | WWW: http://kogs-www.informatik.uni-hamburg.de/~koethe/ |
koethe> |________________________________________________________________|
koethe>
koethe> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
koethe>
koethe>
koethe> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
koethe>
koethe>
koethe>

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------


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