Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Reducing domain check in operator
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-02-26 12:55:18


Eric Niebler a écrit :
> _1 and _2 are in different domains, but _1(_2) is allowed and is in
> the domain of _1. That's why the expression "_1(_2) + _1" is
> permitted, but "_1(_2) + _2" is not.
>
> You might have to post your code for us to get to the bottom of this.
Could it come from the fact exponent is just build using

make_expr<nt2::tag::exponent_, domain_of<T>::type, T const&>

and not proto::operator() ?

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

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