From 937bfe0bac09c56193255256a5f40451f6f71447 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 1 Aug 2013 23:00:19 +0000 Subject: [PATCH] Fix a compilation issue with LLVMs libc++ Due to more restrictive include policy template struct pair is not already defined in std at this point. Unfortunately, a forward declaration is invalid because it doesn't allow for instantiations: "error: implicit instantiation of undefined template" Furthermore, ISO/IEC C++ 2011 Standard, section 17.6.4.2.1 prohibits such manipulation of the namespace std. git-svn-id: https://svn.dealii.org/trunk@30210 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/grid/tria_accessor.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deal.II/include/deal.II/grid/tria_accessor.h b/deal.II/include/deal.II/grid/tria_accessor.h index e0524d2291..7ff6297f2c 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.h +++ b/deal.II/include/deal.II/grid/tria_accessor.h @@ -26,12 +26,8 @@ #include #include +#include -namespace std -{ - template - struct pair; -} DEAL_II_NAMESPACE_OPEN -- 2.39.5