Closed Bug 1289235 Opened 8 years ago Closed 8 years ago

PlatformHandleHelper's implicit conversion to PlatformHandleType fails on MSVC

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1264566
Tracking Status
firefox50 --- affected

People

(Reporter: bryce, Assigned: bryce)

Details

Attachments

(1 file)

The code:
>>  FileDescriptor::PlatformHandleHelper::operator PlatformHandleType

in ipc/glue/FileDescriptor.cpp, is failing to build on latest version of msvc. This looks to be due to the scoping rules for inner and outer types being treated differently than on other compilers. This may have changed in later versions of MSVC, as I haven't seen it previously.

As such, the PlatformHandleType needs to be explicitly namespaced:
>> FileDescriptor::PlatformHandleHelper::operator FileDescriptor::PlatformHandleType
MSVC requires explict namespacing on for the implicit conversion, which is
added in this changeset.

Review commit: https://reviewboard.mozilla.org/r/66956/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/66956/
Attachment #8774520 - Flags: review?(wmccloskey)
Why is the patch private?
Push to review being flakey, attempting to get it to play nice now.
Assignee: nobody → bvandyk
Comment on attachment 8774520 [details]
Bug 1289235 - Fix failing msvc compilation for PlatformHandleHelper implicit conversion.

MSVC requires explict namespacing on for the implicit conversion, which is
added in this changeset.

Review commit: https://reviewboard.mozilla.org/r/66956/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/66956/
this is fixed in a followup.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: