On 7/6/07, John Denker <[EMAIL PROTECTED]> wrote:
> Attached is a simplified, somewhat academic example to illustrate
> what I'm talking about.

Would be a lot better if it worked for any number of arguments. Looks
nice, though.

Variable arguments using "..." don't work with references and I
couldn't come up with any other solution. Something like a
"GetFirstElements(some->list, &xx, &yy, &zz)", while not that elegant,
but could work.

> manifestly thread-safe

Wouldn't count on that, unless the list<int> copy constructor is
thread-safe (don't think so).

Also, copying a whole list just to get the first two elements is a
waste of resources.

-- 
Csaba

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to