$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-19 11:43:14
From: "Matthew Dempsky" <jivera_at_[hidden]>
> I was just playing around with the boost.lambda library and thought of
> playing a bit with it using gcc's typeof extension... this is the code I
> used (just slightly modified documentation code):
>
> typedef typeof(_1 = 1) assign_one;
> list<int> v(10);
> for_each(v.begin(), v.end(), assign_one());
Perhaps
typeof(_1 = 1) assign_one(_1 = 1);
will work?