Closed Bug 1337953 Opened 4 years ago Closed 3 months ago
Deque "a bit more" typesafe
47 bytes, text/x-phabricator-request
|Details | Review|
nsDeque only deals with void* and forces callers to perform casts. It should be trivial to make nsDeque templated on T* at zero extra cost, to provide just a bit more type safety and ease of use. Some code will probably still explicitly use void*, and abuse that to store numbers. If it's easy enough to handle PODs, or even trivially-copyable types, I'll allow them; otherwise another bug can deal with it later on.
Assignee: gsquelart → nobody
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/5614bcd268d1 Make nsDeque templated on pointer type r=froydnj
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/7c8e1538b925 Make nsDeque templated on pointer type r=froydnj
You need to log in before you can comment on or make changes to this bug.