From af4ee9ebfcf58c9cdadf24d8864c9a5ccfea7a6f Mon Sep 17 00:00:00 2001 From: Kerautret <bertrand.kerautret@univ-lyon2.fr> Date: Wed, 26 Dec 2018 23:59:51 +0100 Subject: [PATCH] Demo: fix cpp11 --- Code/Seg/IPOLdemo/IPOLdemo.pro | 1 + Code/Seg/IPOLdemo/mainIPOL.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Seg/IPOLdemo/IPOLdemo.pro b/Code/Seg/IPOLdemo/IPOLdemo.pro index a9b48d9..f06581c 100644 --- a/Code/Seg/IPOLdemo/IPOLdemo.pro +++ b/Code/Seg/IPOLdemo/IPOLdemo.pro @@ -5,6 +5,7 @@ QT+=widgets TEMPLATE = app TARGET = ipolDemo +QMAKE_CXXFLAGS += -std=c++11 INCLUDEPATH += .. \ ../BSTools \ ../BlurredSegment \ diff --git a/Code/Seg/IPOLdemo/mainIPOL.cpp b/Code/Seg/IPOLdemo/mainIPOL.cpp index 7c185f9..f77c276 100755 --- a/Code/Seg/IPOLdemo/mainIPOL.cpp +++ b/Code/Seg/IPOLdemo/mainIPOL.cpp @@ -176,7 +176,7 @@ int main (int argc, char *argv[]) << points.back().x() << " " << points.back().y() << std::endl; // Export pour l'affichage de tous les points d'un segments - for(auto p: points) + for(auto &p : points) { foutAllPts<< p.x() << " " << p.y() << " "; } -- GitLab