Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-19 08:02:23


on Sat Jul 19 2008, Daniel Frey <d.frey-AT-gmx.de> wrote:

> OK, tp... doesn't work. Next try:
>
> template< typename... Ts >
> void f( const std::tuple< Ts... >& tp )
> {
> g( std::get< Ns >( tp )... );
> }

Only slightly OT: in C++03, anyway, using a sequece of get<i> with
increasing i to access all elements of a cons-list style tuple induces
O(N^2) template instantiations. Have we done anything to fix that for
C++0x? Did we legalize a flat (fusion-style) tuple implementation?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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