Closed Bug 902485 Opened 11 years ago Closed 11 years ago

Disallow copy-construction and operator= on WebIDL union structs

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

It's a footgun, as bug 772765 comment 62 shows.
In fact, I think we should do this for UnionMember<T>.  That ought to be good enough.
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Attachment #786965 - Flags: review?(dzbarsky) → review+
Looks like Windows doesn't like the assignment operator on a union member.
https://hg.mozilla.org/integration/mozilla-inbound/rev/842a0836dcd3 with just the operator and ctor on the generated structs.
Flags: in-testsuite?
Whiteboard: [need review]
Target Milestone: --- → mozilla26
https://hg.mozilla.org/mozilla-central/rev/842a0836dcd3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: