diff --git a/js/public/GCVector.h b/js/public/GCVector.h index f94e8cf3d530..f2e8b24b2dcb 100644 --- a/js/public/GCVector.h +++ b/js/public/GCVector.h @@ -47,8 +47,8 @@ class GCVector { public: using ElementType = T; - explicit GCVector(AllocPolicy alloc = AllocPolicy()) - : vector(std::move(alloc)) {} + explicit GCVector(AllocPolicy alloc) : vector(std::move(alloc)) {} + GCVector() : GCVector(AllocPolicy()) {} GCVector(GCVector&& vec) : vector(std::move(vec.vector)) {} diff --git a/mfbt/Vector.h b/mfbt/Vector.h index b6b975782b1a..380e27254867 100644 --- a/mfbt/Vector.h +++ b/mfbt/Vector.h @@ -341,9 +341,8 @@ template class MOZ_NON_PARAM Vector final : private AllocPolicy { /* utilities */ - static constexpr bool kElemIsPod = - std::is_trivial::value && std::is_standard_layout::value; + std::is_trivial_v && std::is_standard_layout_v; typedef detail::VectorImpl Impl; friend struct detail::VectorImpl