
Hi, is there a way to unroll a loop with mpl? I simply would like to unroll for (int i=0; i<10; i++) foobar(i); MPL looks like it is quite powerful, but what is it worth when there is no useful documentation? There are hardly any examples, the mini-tutorial is indeed very mini. Then there is a listing of the interfaces and "the MPL paper", which is mainly concerned with design/implementation questions. Regards, Martin ________________________________________________________________________________________________ Sagen Sie nicht, wir hätten Sie nicht gewarnt! http://my-mail.ch/?redirect=9901 Bestellen Sie Ihren PC oder Ihr Notebook online und sparen Sie! http://my-mail.ch/?redirect=1530

Martin Wartens wrote:
Hi, is there a way to unroll a loop with mpl? I simply would like to unroll
for (int i=0; i<10; i++) foobar(i);
Sure,
mpl::for_each< mpl::range_c
MPL looks like it is quite powerful, but what is it worth when there is no useful documentation? There are hardly any examples, the mini-tutorial is indeed very mini.
FWIW, the reference docs (http://tinyurl.com/2baba) are full of examples -- in fact, there is one per each documented component. A valid criticism would be that they are not complete -- e.g. the very 'for_each' template is documented only in the paper. The latter is going to get fixed Real Soon. -- Aleksey Gurtovoy MetaCommunications Engineering
participants (2)
-
Aleksey Gurtovoy
-
Martin Wartens