public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/27340] valarray uses __cos which may conflict with libm functions
Date: Mon, 01 May 2006 23:40:00 -0000	[thread overview]
Message-ID: <20060501233958.8896.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27340-6008@http.gcc.gnu.org/bugzilla/>



------- Comment #7 from gdr at integrable-solutions dot net  2006-05-01 23:39 -------
Subject: Re:  valarray uses __cos which may conflict with libm functions

"marc dot glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| (In reply to comment #4)
| > Should all those private classes and functions be declared in some
| > specific namespace std::glibcxx_private to have a single point of failure? 
| 
| Oups, I just noticed that was one of the roles of __gnu_cxx (although I don't
| understand why this namespace is not a subnamespace of std:: as tr1 (or at
| least contains a using namespace std;),

Why shall it?


Before people suggest more tricky playing with libstdc++ name spaces,
I would recommand people understand that namespaces are not silver bullet
against machivelic playing with names. 


| which would at the same time fix things
| like getenv not being prefixed by std:: in ext/mt_allocator.h).

That is a separate problem that does not require namespace nesting. 

Nesting namespaces does not come for free.  You really need to
understand its consequences (name lookp, overload resolution, etc.)
before proposing it.   

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27340


  parent reply	other threads:[~2006-05-01 23:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-27 19:00 [Bug libstdc++/27340] New: " marc dot glisse at normalesup dot org
2006-04-27 19:07 ` [Bug libstdc++/27340] " pinskia at gcc dot gnu dot org
2006-04-28 10:33 ` marc dot glisse at normalesup dot org
2006-04-28 20:01 ` pcarlini at suse dot de
2006-04-28 20:43 ` marc dot glisse at normalesup dot org
2006-04-28 21:18 ` pcarlini at suse dot de
2006-04-28 21:57 ` marc dot glisse at normalesup dot org
2006-05-01 23:40 ` gdr at integrable-solutions dot net [this message]
2010-02-05 13:07 ` paolo dot carlini at oracle dot com
2010-02-06 17:52 ` marc dot glisse at normalesup dot org
2010-02-06 19:07 ` paolo dot carlini at oracle dot com
2010-02-06 19:18 ` gdr at gcc dot gnu dot org
2010-02-06 19:43 ` paolo dot carlini at oracle dot com
2010-02-06 19:43 ` paolo dot carlini at oracle dot com
2010-02-06 20:41 ` paolo at gcc dot gnu dot org
2010-02-06 20:44 ` paolo dot carlini at oracle dot com
2010-02-06 22:21 ` gdr at integrable-solutions dot net

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=20060501233958.8896.qmail@sourceware.org \
    --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: link
Be 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).