Closed Bug 806546 Opened 12 years ago Closed 9 years ago

Need an mfbt typedef for the type of nullptr

Categories

(Core :: MFBT, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bzbarsky, Unassigned)

References

Details

Basically, need nullptr_t or the like to actually work. Henri ended up hacking around this in 792790, and I'm having to do the same in bug 779048 (where I have ambiguous overloads between "void*" and "XMLHttpRequest*" when nullptr is passed, plus a non-matching "template<typename T>" that takes a "T*"). It would be nice if this typedefery just lived in mfbt.
I think this needs us to implement the nullptr replacement for compilers which don't support it as suggested in bug 626472 comment 1.
Blocks: 817091
Depends on: 1120062
Just use decltype(nullptr), now that we no longer emulate nullptr anywhere.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.