Re: [eigen] Very interesting read which might be important for us |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Very interesting read which might be important for us
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 19 May 2010 09:38:34 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=sVtS45a1zaL3zZZTyeOf0lpcIC3xLkLQ06bxfG0hW+M=; b=f3Lbb3AYkHZJvy2s0R1H+UAGlNQXme4DFFDc4qdrqQH6LqbX5iHX+NLu8nXiP8KzGP CDChD82T6zTApeSw+ztVZCnQIBfVYY/NVP7+7/TYOxlQIf4a9lKkjSom2N+hz5/Gbtdr HQ/xkoGhbKiS4tkMJ4EZmwa5v1NhhngRYHZb8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DBoGzN9CnVrFkPZ+hHDQQkur5b93A/jSXIl1qf77bkY+jL2zMTAPCuZqtcbGAFeH05 QwmzGaiXJbaJXpOxb+9gQz06VTcoy1J/oulPC7u+qhSlbJJwMr9mA1PXonEHAtr3sgJQ gWAwQrJHs1Rob+3XDrAV/8tRXAv3gRWWllTkc=
Yes, good read! A2 has been very annoying for us, namely, that binding
a reference-to-non-const to a temporary object is forbidden. In Eigen
and other xpr-templates libraries allowing xprs to be lvalues, this
forces one to use reference-to-const and then const_cast: very
annoying.
Benoit
2010/5/19 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> Well, at least from a programmers point of view.
>
> http://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/
>
> - Hauke
>
>
>