|
Boost Users : |
Subject: Re: [Boost-users] [proto] need explanation in implementing distributive law
From: Eric Niebler (eric_at_[hidden])
Date: 2010-03-23 00:38:32
On 3/23/2010 9:30 AM, Kim Kuen Tang wrote:
> Andrew Durward schrieb:
>> As a follow-up, the attached code seems to compile and yield the expected
>> result.
>
> it compiles on my side. Thx for ur improvement.
Nice to see proto users helping each other! One comment:
> #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
> #define _left call<proto::_left>
> #define _right call<proto::_right>
I can't imagine the above two have any effect at all.
> #define _make_plus(x,y) call<proto::_make_plus(x,y)>
> #define _make_multiplies(x,y) call<proto::_make_multiplies(x,y)>
Yes, these two make sense because msvc has such a hard time with nested
function types. Let's hope they get their act together.
-- Eric Niebler BoostPro Computing http://www.boostpro.com
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