From 3e12d739b57f6ff9342c79e54d7f675658a045f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Thu, 28 May 2015 17:16:28 +0200 Subject: [PATCH] Restore build on older compilers Older compilers, e.g., GCC 4.4., do not understand the "simple-type-specifier" syntax of C++11's "friend" declarations. Typical responses are error: a class-key must be used when declaring a friend error: friend declaration does not name a class or function Restore build on older compilers (e.g., GCC prior to 4.7) by inserting the 'class' keyword. --- opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp b/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp index 5680a8e58..1a725631d 100644 --- a/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp +++ b/opm/polymer/fullyimplicit/BlackoilPolymerModel.hpp @@ -51,7 +51,7 @@ namespace Opm { typedef typename Base::WellState WellState; // The next line requires C++11 support available in g++ 4.7. // friend Base; - friend BlackoilModelBase >; + friend class BlackoilModelBase >; /// Construct the model. It will retain references to the /// arguments of this functions, and they are expected to