Closed
Bug 1178589
Opened 11 years ago
Closed 8 years ago
Make it a compile time error to do mozilla::Variant<int, int>
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: fitzgen, Unassigned)
References
Details
Types should be unique.
Follow up to bug 1174906
Oops, I've allowed same types in bug 1338389. :-)
(We had some real use for templated classes that take types that are often similar.)
Note that in case of same types, access is only possibly through indices, not types.
So if you use `Variant<int, int> v;`, then `v.get<int>()` will give you a compiler error; I would say it probably covers the reason(s) why you opened this bug?
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•