Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2008-08-29 04:51:45


Markus Werle wrote:
> Hi!
>
> The following piece of code yields "( 0)" as output, but IMHO
> the output should be "(test 1)".
> Looks like at_c creates temporaries, but I expected it to
> return a reference.
> How can I fix this?

I can't answer your question about using at_c with a tr1::tuple, but why not
use std::tr1::get<N>() to access a tuple?

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net