From 4595e9e3cfc70a9607209c15336b85bf123c8ec7 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Wed, 24 Oct 2018 18:04:17 +0200
Subject: [PATCH] Compilation fix

Not sure it is really an issue, but clang-7 seems no longer to be able to
perform template deduction on this particular lambda definition
replaced 'std::function' by 'auto'...
---
 src/mesh/MeshData.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesh/MeshData.hpp b/src/mesh/MeshData.hpp
index 6bd7e8925..f9a2aeb57 100644
--- a/src/mesh/MeshData.hpp
+++ b/src/mesh/MeshData.hpp
@@ -179,7 +179,7 @@ class MeshData
               const auto& face_nodes = face_to_node_matrix[l];
 
 #warning should this lambda be replaced by a precomputed correspondance?
-              std::function local_node_number_in_cell
+              auto local_node_number_in_cell
                   = [&](const NodeId& node_number) {
                       for (size_t i_node=0; i_node<cell_nodes.size(); ++i_node) {
                         if (node_number == cell_nodes[i_node]) {
-- 
GitLab