diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-07-10 23:48:26 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-07-10 23:48:26 +0200 |
commit | 6d1f5dbaaefcb9cc198aad362146131f8eec9cd7 (patch) | |
tree | bfc10b33b7d6efd0008a539fa3362616995fe518 /test/sizeof.cpp | |
parent | 71cccf0ed825022555b6da57ea64433622058601 (diff) |
Add no_assignment_operator to a few classes that must not be assigned, and fix a couple of warnings.
Diffstat (limited to 'test/sizeof.cpp')
-rw-r--r-- | test/sizeof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sizeof.cpp b/test/sizeof.cpp index 68463c9b6..c454780a6 100644 --- a/test/sizeof.cpp +++ b/test/sizeof.cpp @@ -13,7 +13,7 @@ template<typename MatrixType> void verifySizeOf(const MatrixType&) { typedef typename MatrixType::Scalar Scalar; if (MatrixType::RowsAtCompileTime!=Dynamic && MatrixType::ColsAtCompileTime!=Dynamic) - VERIFY(sizeof(MatrixType)==sizeof(Scalar)*size_t(MatrixType::SizeAtCompileTime)); + VERIFY(sizeof(MatrixType)==sizeof(Scalar)*std::ptrdiff_t(MatrixType::SizeAtCompileTime)); else VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index)); } |