public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ross.martin at ieee dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51013] complex::{imag,real}() should maintain lvalue-returning extension in C++11 Date: Sun, 06 Sep 2015 18:09:00 -0000 [thread overview] Message-ID: <bug-51013-4-1SIP6iCn0C@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51013-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51013 Ross Martin <ross.martin at ieee dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ross.martin at ieee dot org --- Comment #14 from Ross Martin <ross.martin at ieee dot org> --- This change to not be able to pull out a reference to the real or imaginary parts has messed me up. The assumption being made by this new complex class is that the real and imaginary parts are just a float or a double. That is false in my code, and doesn't seem to be a good assumption for a general-purpose complex implementation. My code has real and imaginary parts that are themselves full classes. These classes can, at times, act like double-precision numbers, so it makes sense to build complex numbers out of them for arithmetic manipulations. However, I need direct access to the real and imaginary parts to be able to access other parts of the class parameters, and this new complex-class implementation explicitly forbids any direct access to the real and imaginary parts in a type-safe way that doesn't rely on knowledge of internal class data organization. Not a good change, IMHO.
next prev parent reply other threads:[~2015-09-06 18:09 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-11-07 21:10 [Bug libstdc++/51013] New: " jyasskin at gcc dot gnu.org 2011-11-07 21:11 ` [Bug libstdc++/51013] " paolo.carlini at oracle dot com 2011-11-07 23:48 ` marc.glisse at normalesup dot org 2011-11-08 0:11 ` paolo.carlini at oracle dot com 2011-11-08 0:30 ` paolo.carlini at oracle dot com 2011-11-08 1:11 ` jason at gcc dot gnu.org 2011-11-08 7:47 ` marc.glisse at normalesup dot org 2011-11-08 8:13 ` paolo.carlini at oracle dot com 2011-11-08 15:20 ` jason at gcc dot gnu.org 2011-11-08 15:53 ` marc.glisse at normalesup dot org 2011-11-08 18:36 ` daniel.kruegler at googlemail dot com 2011-11-08 18:49 ` marc.glisse at normalesup dot org 2011-11-09 10:42 ` daniel.kruegler at googlemail dot com 2013-07-11 15:03 ` glisse at gcc dot gnu.org 2015-09-06 18:09 ` ross.martin at ieee dot org [this message] 2015-09-06 18:45 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51013-4-1SIP6iCn0C@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).