From 6d1f5dbaaefcb9cc198aad362146131f8eec9cd7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Jul 2013 23:48:26 +0200 Subject: Add no_assignment_operator to a few classes that must not be assigned, and fix a couple of warnings. --- test/sizeof.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sizeof.cpp') 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 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)); } -- cgit v1.2.3