|
Boost Users : |
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
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