$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [preprocessor]  variable repetition
From: Manfred Doudar (manfred.doudar_at_[hidden])
Date: 2010-05-30 22:58:05
Hello,
Not having a good time with the PP lately, and am struggling over the
following - would like to generate:
    void foo(T1)
    {
         bar<T1>(a[0]);
    }
    void foo(T1, T2)
    {
        bar<T1, T2>(a[0]);
        bar<T1, T2>(a[1]);
    }
    void foo(T1, T2, T3)
    {
        bar<T1, T2, T3>(a[0]);
        bar<T1, T2, T3>(a[1]);
        bar<T1, T2, T3>(a[2]);
    }
 ...and so on.
All help most welcome.
Cheers,
-- Manfred