From dbbfb2a4174ba3ee4b4763758779f2cc7ccee997 Mon Sep 17 00:00:00 2001 From: Benjamin James Date: Thu, 22 Mar 2018 14:44:39 +0000 Subject: [PATCH] Fixed compilation issue g++ 4.9 --- src/Makefile | 2 +- src/cluster/src/Trainer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 44ac55a..3013ed0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ # CXX = /usr/bin/c++ CXX ?= g++ -CXXFLAGS = -O3 -g -fmessage-length=0 -Wall -march=native +CXXFLAGS = -O3 -g -fmessage-length=0 -Wall -march=native -std=c++11 # # Objects diff --git a/src/cluster/src/Trainer.cpp b/src/cluster/src/Trainer.cpp index 31e512f..c6d5064 100644 --- a/src/cluster/src/Trainer.cpp +++ b/src/cluster/src/Trainer.cpp @@ -42,10 +42,10 @@ std::tuple*,double,size_t,size_t> Trainer::get_close(Point *p, bv std::tuple*, double, size_t, - size_t> result = {NULL, + size_t> result = std::tuple*, double, size_t, size_t>(NULL, -1, 0, - 0}; + 0); bool has_found = false; #ifdef DEBUG