Closed
Bug 1289033
Opened 8 years ago
Closed 8 years ago
add mozilla::UnderlyingType
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
Our set of supported compilers now all have an __underlying_type that we can use to implement a version of std::underlying_type.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/66770/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66770/
Attachment #8774240 -
Flags: review?(nfroyd)
Comment 2•8 years ago
|
||
Does it mean that we can invoke std::underlying_type directly? Is there any policy that we cannot use std directly but need a wrapper to wrap it? Thanks.
Assignee | ||
Comment 3•8 years ago
|
||
Oh, right, maybe https://groups.google.com/forum/#!searchin/mozilla.dev.platform/standard$20library$20support$20enabled%7Csort:relevance/mozilla.dev.platform/v_T59V5QRss/Ti6Shz_mOwAJ means that this is not needed at all.
Comment 4•8 years ago
|
||
Yeah, I don't think it is. TypeTraits.h can die a slow or fast death now -- but it definitely seems we shouldn't ever add to it now, unless I'm missing something.
Comment 5•8 years ago
|
||
Comment on attachment 8774240 [details] Bug 1289033 - Add mozilla::UnderlyingType. https://reviewboard.mozilla.org/r/66770/#review63586 Yeah, std::underlying_type should work everywhere. Can you try that out and re-r? this patch if that's not the case?
Attachment #8774240 -
Flags: review?(nfroyd)
Assignee | ||
Comment 6•8 years ago
|
||
std::underyling_type worked fine on try, so I will use that. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•