From c69b2fd8edc75c027b6e08839350bbe0ac943f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Thu, 27 Nov 2014 15:12:56 +0100 Subject: [PATCH] Include to fix build on GCC 4.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 4.8 provides 'nullptr' in C++11 mode. That capability is detected at configuration time and stored in and we need it when targeting Dune 2.2.1 to avoid diagnostics of the form [...]/dune/common/nullptr.hh:27:1: error: expected ‘;’ after class definition } nullptr = {}; // and whose name is nullptr ^ [...]/dune/common/nullptr.hh:27:1: error: qualifiers can only be specified for objects and functions [...]/dune/common/nullptr.hh:27:3: error: expected unqualified-id before ‘nullptr’ } nullptr = {}; // and whose name is nullptr --- examples/opm_init_check.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/opm_init_check.cpp b/examples/opm_init_check.cpp index f1995e7fe..7b04c1f31 100644 --- a/examples/opm_init_check.cpp +++ b/examples/opm_init_check.cpp @@ -17,6 +17,7 @@ along with OPM. If not, see . */ +#include #include #include