Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backed out changeset 3411f1c818f6 (bug 1374629) for build bustage a=b…
Browse files Browse the repository at this point in the history
…ackout

MozReview-Commit-ID: GHWdfD0h8LI
  • Loading branch information
KWierso committed Jun 21, 2017
1 parent f9e78fa commit 57868da
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mfbt/NotNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
// for the last one, where the handle type is |void|. See below.

#include "mozilla/Assertions.h"
#include <stddef.h>

namespace mozilla {

Expand Down Expand Up @@ -115,12 +114,7 @@ class NotNull

// Construct/assign from another NotNull with a compatible base pointer type.
template <typename U>
MOZ_IMPLICIT NotNull(const NotNull<U>& aOther) : mBasePtr(aOther.get()) {
static_assert(sizeof(T) == sizeof(NotNull<T>),
"NotNull must have zero space overhead.");
static_assert(offsetof(NotNull<T>, mBasePtr) == 0,
"mBasePtr must have zero offset.");
}
MOZ_IMPLICIT NotNull(const NotNull<U>& aOther) : mBasePtr(aOther.get()) {}

// Default copy/move construction and assignment.
NotNull(const NotNull<T>&) = default;
Expand Down

0 comments on commit 57868da

Please sign in to comment.