Subject: [Boost-users] [boost.tuple] Nested tuples and tie
From: Julius Ziegler (ziegler_at_[hidden])
Date: 2008-12-17 07:26:03


Dear list,

is there a way to make constructs like this one work?

double a, b, c;

tie( tie( a, b ), c ) = make_tuple( make_tuple( 1., 2. ), 3. );

This leads to the first parameter of the "outer" tie getting initialised by the
return value of the "inner" tie. That means a temporary gets passed by
reference, and the compiler (sort of reasonably) doesnt want to do this.

Best regards,
Julius