On Thu, Oct 28, 2010 at 7:47 AM, Eric Niebler <e...@boostpro.com> 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
at:
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=99

Eric,

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.

Cheers,

-- 
Bart
_______________________________________________
proto mailing list
proto@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/proto

Reply via email to