Open Bug 1738179 Opened 3 years ago Updated 1 year ago

[meta] Remove, or rewrite and document, extensions inside `namespace std`

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: mozbugz, Unassigned)

Details

(Keywords: meta)

Extending std is UB in most cases, with some specified exceptions.

As I write this, there are at least 55 of them in our code: https://searchfox.org/mozilla-central/search?q=namespace+std+{

E.g.:

Etc.
I would suggest filing bugs under this one to tackle each of these, or groups thereof.
And wherever we really want to overload something in std::, it should be explained with a comment.

Here are some more ideas about what can&should be done safely: https://quuxplusone.github.io/blog/2021/10/27/dont-reopen-namespace-std/

Priority: -- → P3

The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:ahochheiden, maybe it's time to close this bug?

Flags: needinfo?(ahochheiden)

I think this bug is still valid. It's just that nobody has gotten around to working on it yet.

Flags: needinfo?(ahochheiden)

The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:ahochheiden, maybe it's time to close this bug?

Flags: needinfo?(ahochheiden)

Still valid (36 instances). Same justification as comment 2 for keeping this open.

Severity: -- → S3
Flags: needinfo?(ahochheiden)
You need to log in before you can comment on or make changes to this bug.