From eda64b82386c7433a833a49f5f22967785dcf9c8 Mon Sep 17 00:00:00 2001 From: Bastien Gorissen <bastien.gorissen@cenaero.be> Date: Wed, 29 Feb 2012 10:20:50 +0000 Subject: [PATCH] Fix compilation with latest GCC --- Geo/CustomContainer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Geo/CustomContainer.h b/Geo/CustomContainer.h index 6f6ff6a93c..7feae1dffa 100644 --- a/Geo/CustomContainer.h +++ b/Geo/CustomContainer.h @@ -10,6 +10,7 @@ #include <cstdlib> #include <cstring> +#include <cstddef> #include "GmshMessage.h" @@ -269,7 +270,7 @@ class FaceAllocator struct Face8 { T faces[8]; - void set_pool_prev(void *const p) + void set_pool_prev(void *const p) { *reinterpret_cast<void**>(faces) = p; } @@ -286,7 +287,7 @@ class FaceAllocator struct Face16 { T faces[16]; - void set_pool_prev(void *const p) + void set_pool_prev(void *const p) { *reinterpret_cast<void**>(faces) = p; } @@ -490,7 +491,7 @@ class FaceAllocator static ptrdiff_t offset6; static ptrdiff_t offset8; static ptrdiff_t offset16; - + }; // Definitions for static data members of class FaceAllocator -- GitLab