Boost logo

Proto :

Subject: Re: [proto] Using proto with expressions containing matrices from the EIgen library
From: Bart Janssens (bart.janssens_at_[hidden])
Date: 2010-11-18 09:28:50

On Thu, Oct 28, 2010 at 7:47 AM, Eric Niebler <eric_at_[hidden]> wrote:
> You should be asking yourself why you're trying to return expression
> templates from a function. If you really need to do that, then you can't
> go returning references to temporary objects.

Hi guys,

Just wanted to provide some closure to the subject, the Eigen
developers provided me with a workaround that allows to store
expression template operands by value instead of by reference, and
they in fact opened a bug to better support the use case I brought up


I am also following your suggestion to use transforms, since right now
I'm mixing proto::eval and some transforms, but as I finally
understand transforms a little better, it seems they can simplify my
code quite a lot in this case.



Proto list run by eric at