Skip to content
Snippets Groups Projects
Commit 4595e9e3 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

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'...
parent 5f04280b
No related branches found
No related tags found
1 merge request!11Feature/mpi
...@@ -179,7 +179,7 @@ class MeshData ...@@ -179,7 +179,7 @@ class MeshData
const auto& face_nodes = face_to_node_matrix[l]; const auto& face_nodes = face_to_node_matrix[l];
#warning should this lambda be replaced by a precomputed correspondance? #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) { = [&](const NodeId& node_number) {
for (size_t i_node=0; i_node<cell_nodes.size(); ++i_node) { for (size_t i_node=0; i_node<cell_nodes.size(); ++i_node) {
if (node_number == cell_nodes[i_node]) { if (node_number == cell_nodes[i_node]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment