From 440640f43818d2536ebb528e77c9da8c342ab36f Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 31 Jul 2013 08:54:27 +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/branches/branch_port_to_libcxx@30189 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