C++11: Use template aliases instead of inheritance.

This only came up in one location, PointerVector.

A template alias is superior to inheritance, which doesn’t provide full
type equivalence and doesn’t automatically inherit non-default
constructors.

R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/683753005
This commit is contained in:
Mark Mentovai 2014-11-05 14:54:42 -05:00
parent de0979b930
commit bbeef320e0

View File

@ -50,7 +50,7 @@ class PointerContainer : public ContainerType {
//! \note No attempt is made to `delete` elements that are removed from the
//! vector by other means, such as replacement or `clear()`.
template <typename T>
class PointerVector : public PointerContainer<std::vector<T*>> {};
using PointerVector = PointerContainer<std::vector<T*>>;
} // namespace crashpad