Closed Bug 1289033 Opened 8 years ago Closed 8 years ago

add mozilla::UnderlyingType

Categories

(Core :: MFBT, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

Our set of supported compilers now all have an __underlying_type that we can use to implement a version of std::underlying_type.
Blocks: 1277133
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.
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 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)
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.

Attachment

General

Created:
Updated:
Size: