On Fri, Aug 1, 2014 at 11:24 AM, Jeff Walden <jwalden+...@mit.edu> wrote:
> One last note. UniquePtr is patterned on std::unique_ptr, the C++11 > standard version of this idiom. The current mozilla::Scoped class is > another recent attempt to address largely the same needs. The older > nsAutoPtr and nsAutoArrayPtr classes are even older attempts at a solution, > that suffer from the (T&) non-copy-constructor problem mentioned before. > Scoped, nsAutoPtr, and nsAutoArrayPtr shouldn't be used now that UniquePtr > is available, and the former class is now deprecated (and is slowly being > removed). (I consider nsAutoPtr and nsAutoArrayPtr deprecated as well, but > it's not within my power to authoritatively declare it so. Nonetheless, > you should treat them as such.) > Is there anything blocking us from mass-removing nsAutoPtr/nsAutoArrayPtr in favour of UniquePtr? I think it's more important to remove old stuff than add new stuff, so the sooner we can mass-remove nsAutoPtr/nsAutoArrayPtr the better. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o oioso oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo owohooo osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro ooofo otohoeo ofoioroeo ooofo ohoeololo. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform